Class: Google::Apis::CloudsearchV1::Snippet
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::Snippet
- Defined in:
- generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb more...
Overview
Snippet of the search result, which summarizes the content of the resulting page.
Instance Attribute Summary collapse
-
#match_ranges ⇒ Array<Google::Apis::CloudsearchV1::MatchRange>
The matched ranges in the snippet.
-
#snippet ⇒ String
The snippet of the document.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Snippet
constructor
A new instance of Snippet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Snippet
Returns a new instance of Snippet
3901 3902 3903 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3901 def initialize(**args) update!(**args) end |
Instance Attribute Details
#match_ranges ⇒ Array<Google::Apis::CloudsearchV1::MatchRange>
The matched ranges in the snippet.
Corresponds to the JSON property matchRanges
3892 3893 3894 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3892 def match_ranges @match_ranges end |
#snippet ⇒ String
The snippet of the document.
The snippet of the document. May contain escaped HTML character that
should be unescaped prior to rendering.
Corresponds to the JSON property snippet
3899 3900 3901 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3899 def snippet @snippet end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3906 3907 3908 3909 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3906 def update!(**args) @match_ranges = args[:match_ranges] if args.key?(:match_ranges) @snippet = args[:snippet] if args.key?(:snippet) end |