class Google::Apis::CustomsearchV1::Search

Attributes

context[RW]

Corresponds to the JSON property `context` @return [Google::Apis::CustomsearchV1::Context]

items[RW]

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

kind[RW]

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

promotions[RW]

Corresponds to the JSON property `promotions` @return [Array<Google::Apis::CustomsearchV1::Promotion>]

queries[RW]

Corresponds to the JSON property `queries` @return [Hash<String,Array<Google::Apis::CustomsearchV1::Query>>]

search_information[RW]

Corresponds to the JSON property `searchInformation` @return [Google::Apis::CustomsearchV1::Search::SearchInformation]

spelling[RW]

Corresponds to the JSON property `spelling` @return [Google::Apis::CustomsearchV1::Search::Spelling]

url[RW]

Corresponds to the JSON property `url` @return [Google::Apis::CustomsearchV1::Search::Url]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/customsearch_v1/classes.rb, line 666
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 671
def update!(**args)
  @context = args[:context] if args.key?(:context)
  @items = args[:items] if args.key?(:items)
  @kind = args[:kind] if args.key?(:kind)
  @promotions = args[:promotions] if args.key?(:promotions)
  @queries = args[:queries] if args.key?(:queries)
  @search_information = args[:search_information] if args.key?(:search_information)
  @spelling = args[:spelling] if args.key?(:spelling)
  @url = args[:url] if args.key?(:url)
end