Class: Google::Apis::CustomsearchV1::Search
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::CustomsearchV1::Search
 
 
- 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
- 
  
    
      #context  ⇒ Google::Apis::CustomsearchV1::Context 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Corresponds to the JSON property
context. - 
  
    
      #items  ⇒ Array<Google::Apis::CustomsearchV1::Result> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Corresponds to the JSON property
items. - 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Corresponds to the JSON property
kind. - 
  
    
      #promotions  ⇒ Array<Google::Apis::CustomsearchV1::Promotion> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Corresponds to the JSON property
promotions. - 
  
    
      #queries  ⇒ Hash<String,Array<Google::Apis::CustomsearchV1::Query>> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Corresponds to the JSON property
queries. - 
  
    
      #search_information  ⇒ Google::Apis::CustomsearchV1::Search::SearchInformation 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Corresponds to the JSON property
searchInformation. - 
  
    
      #spelling  ⇒ Google::Apis::CustomsearchV1::Search::Spelling 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Corresponds to the JSON property
spelling. - 
  
    
      #url  ⇒ Google::Apis::CustomsearchV1::Search::Url 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Corresponds to the JSON property
url. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Search 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Search.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
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
#context ⇒ Google::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  | 
  
#items ⇒ Array<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  | 
  
#kind ⇒ String
Corresponds to the JSON property kind
      633 634 635  | 
    
      # File 'generated/google/apis/customsearch_v1/classes.rb', line 633 def kind @kind end  | 
  
#promotions ⇒ Array<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  | 
  
#queries ⇒ Hash<String,Array<Google::Apis::CustomsearchV1::Query>>
Corresponds to the JSON property queries
      643 644 645  | 
    
      # File 'generated/google/apis/customsearch_v1/classes.rb', line 643 def queries @queries end  | 
  
#search_information ⇒ Google::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  | 
  
#spelling ⇒ Google::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  | 
  
#url ⇒ Google::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  |