class Google::Apis::CustomsearchV1::Result

Attributes

cache_id[RW]

Corresponds to the JSON property `cacheId` @return [String]

file_format[RW]

Corresponds to the JSON property `fileFormat` @return [String]

formatted_url[RW]

Corresponds to the JSON property `formattedUrl` @return [String]

html_formatted_url[RW]

Corresponds to the JSON property `htmlFormattedUrl` @return [String]

html_snippet[RW]

Corresponds to the JSON property `htmlSnippet` @return [String]

html_title[RW]

Corresponds to the JSON property `htmlTitle` @return [String]

image[RW]

Corresponds to the JSON property `image` @return [Google::Apis::CustomsearchV1::Result::Image]

kind[RW]

Corresponds to the JSON property `kind` @return [String]

labels[RW]

Corresponds to the JSON property `labels` @return [Array<Google::Apis::CustomsearchV1::Result::Label>]

mime[RW]

Corresponds to the JSON property `mime` @return [String]

pagemap[RW]

Corresponds to the JSON property `pagemap` @return [Hash<String,Array<Hash<String,Object>>>]

snippet[RW]

Corresponds to the JSON property `snippet` @return [String]

title[RW]

Corresponds to the JSON property `title` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/customsearch_v1/classes.rb, line 512
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/customsearch_v1/classes.rb, line 517
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