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



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

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

Instance Attribute Details

#contextGoogle::Apis::CustomsearchV1::Context

Corresponds to the JSON property context



623
624
625
# File 'generated/google/apis/customsearch_v1/classes.rb', line 623

def context
  @context
end

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

Corresponds to the JSON property items



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

def items
  @items
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


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

def kind
  @kind
end

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

Corresponds to the JSON property promotions



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

def promotions
  @promotions
end

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

Corresponds to the JSON property queries

Returns:



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

def queries
  @queries
end

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

Corresponds to the JSON property searchInformation



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

def search_information
  @search_information
end

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

Corresponds to the JSON property spelling



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

def spelling
  @spelling
end

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

Corresponds to the JSON property url



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

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



665
666
667
668
669
670
671
672
673
674
# File 'generated/google/apis/customsearch_v1/classes.rb', line 665

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