Class: Google::Apis::CloudsearchV1::Snippet
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::Snippet
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
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.
Constructor Details
#initialize(**args) ⇒ Snippet
Returns a new instance of Snippet.
15754 15755 15756 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15754 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
15746 15747 15748 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15746 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
15752 15753 15754 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15752 def snippet @snippet end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15759 15760 15761 15762 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15759 def update!(**args) @match_ranges = args[:match_ranges] if args.key?(:match_ranges) @snippet = args[:snippet] if args.key?(:snippet) end |