class Google::Apis::CustomsearchV1::Result
A custom search result.
Attributes
Indicates the ID of Google's cached version of the search result. Corresponds to the JSON property `cacheId` @return [String]
An abridged version of this search result’s URL, e.g. www.example.com. Corresponds to the JSON property `displayLink` @return [String]
The file format of the search result. Corresponds to the JSON property `fileFormat` @return [String]
The URL displayed after the snippet for each search result. Corresponds to the JSON property `formattedUrl` @return [String]
The HTML-formatted URL displayed after the snippet for each search result. Corresponds to the JSON property `htmlFormattedUrl` @return [String]
The snippet of the search result, in HTML. Corresponds to the JSON property `htmlSnippet` @return [String]
The title of the search result, in HTML. Corresponds to the JSON property `htmlTitle` @return [String]
Image
belonging to a custom search result. Corresponds to the JSON property `image` @return [Google::Apis::CustomsearchV1::Result::Image]
A unique identifier for the type of current object. For this API, it is ` customsearch#result.` Corresponds to the JSON property `kind` @return [String]
Encapsulates all information about [refinement labels](developers. google.com/custom-search/docs/xml_results). Corresponds to the JSON property `labels` @return [Array<Google::Apis::CustomsearchV1::Result::Label>]
The full URL to which the search result is pointing, e.g. www.example. com/foo/bar. Corresponds to the JSON property `link` @return [String]
The MIME type of the search result. Corresponds to the JSON property `mime` @return [String]
Contains [PageMap](developers.google.com/custom-search/docs/ structured_data#pagemaps) information for this search result. Corresponds to the JSON property `pagemap` @return [Hash<String,Object>]
The snippet of the search result, in plain text. Corresponds to the JSON property `snippet` @return [String]
The title of the search result, in plain text. Corresponds to the JSON property `title` @return [String]
Public Class Methods
# File lib/google/apis/customsearch_v1/classes.rb, line 227 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/customsearch_v1/classes.rb, line 232 def update!(**args) @cache_id = args[:cache_id] if args.key?(:cache_id) @display_link = args[:display_link] if args.key?(:display_link) @file_format = args[:file_format] if args.key?(:file_format) @formatted_url = args[:formatted_url] if args.key?(:formatted_url) @html_formatted_url = args[:html_formatted_url] if args.key?(:html_formatted_url) @html_snippet = args[:html_snippet] if args.key?(:html_snippet) @html_title = args[:html_title] if args.key?(:html_title) @image = args[:image] if args.key?(:image) @kind = args[:kind] if args.key?(:kind) @labels = args[:labels] if args.key?(:labels) @link = args[:link] if args.key?(:link) @mime = args[:mime] if args.key?(:mime) @pagemap = args[:pagemap] if args.key?(:pagemap) @snippet = args[:snippet] if args.key?(:snippet) @title = args[:title] if args.key?(:title) end