Class: Google::Apis::CustomsearchV1::Search

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/customsearch_v1/classes.rb,
generated/google/apis/customsearch_v1/representations.rb,
generated/google/apis/customsearch_v1/representations.rb

Defined Under Namespace

Classes: SearchInformation, Spelling, Url

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Search

Returns a new instance of Search



666
667
668
# File 'generated/google/apis/customsearch_v1/classes.rb', line 666

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#contextGoogle::Apis::CustomsearchV1::Context

Corresponds to the JSON property context



629
630
631
# File 'generated/google/apis/customsearch_v1/classes.rb', line 629

def context
  @context
end

#itemsArray<Google::Apis::CustomsearchV1::Result>

Corresponds to the JSON property items



634
635
636
# File 'generated/google/apis/customsearch_v1/classes.rb', line 634

def items
  @items
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


639
640
641
# File 'generated/google/apis/customsearch_v1/classes.rb', line 639

def kind
  @kind
end

#promotionsArray<Google::Apis::CustomsearchV1::Promotion>

Corresponds to the JSON property promotions



644
645
646
# File 'generated/google/apis/customsearch_v1/classes.rb', line 644

def promotions
  @promotions
end

#queriesHash<String,Array<Google::Apis::CustomsearchV1::Query>>

Corresponds to the JSON property queries

Returns:



649
650
651
# File 'generated/google/apis/customsearch_v1/classes.rb', line 649

def queries
  @queries
end

#search_informationGoogle::Apis::CustomsearchV1::Search::SearchInformation

Corresponds to the JSON property searchInformation



654
655
656
# File 'generated/google/apis/customsearch_v1/classes.rb', line 654

def search_information
  @search_information
end

#spellingGoogle::Apis::CustomsearchV1::Search::Spelling

Corresponds to the JSON property spelling



659
660
661
# File 'generated/google/apis/customsearch_v1/classes.rb', line 659

def spelling
  @spelling
end

#urlGoogle::Apis::CustomsearchV1::Search::Url

Corresponds to the JSON property url



664
665
666
# File 'generated/google/apis/customsearch_v1/classes.rb', line 664

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



671
672
673
674
675
676
677
678
679
680
# 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