Class: Google::Apis::CustomsearchV1::Search::SearchInformation
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::CustomsearchV1::Search::SearchInformation
 
- Defined in:
- generated/google/apis/customsearch_v1/classes.rb,
 generated/google/apis/customsearch_v1/representations.rb,
 generated/google/apis/customsearch_v1/representations.rb
Instance Attribute Summary collapse
- 
  
    
      #formatted_search_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property formattedSearchTime.
- 
  
    
      #formatted_total_results  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property formattedTotalResults.
- 
  
    
      #search_time  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property searchTime.
- 
  
    
      #total_results  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property totalResults.
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ SearchInformation 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of SearchInformation. 
- 
  
    
      #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) ⇒ SearchInformation
Returns a new instance of SearchInformation
| 700 701 702 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 700 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#formatted_search_time ⇒ String
Corresponds to the JSON property formattedSearchTime
| 683 684 685 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 683 def formatted_search_time @formatted_search_time end | 
#formatted_total_results ⇒ String
Corresponds to the JSON property formattedTotalResults
| 688 689 690 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 688 def formatted_total_results @formatted_total_results end | 
#search_time ⇒ Float
Corresponds to the JSON property searchTime
| 693 694 695 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 693 def search_time @search_time end | 
#total_results ⇒ Fixnum
Corresponds to the JSON property totalResults
| 698 699 700 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 698 def total_results @total_results end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 705 706 707 708 709 710 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 705 def update!(**args) @formatted_search_time = args[:formatted_search_time] if args.key?(:formatted_search_time) @formatted_total_results = args[:formatted_total_results] if args.key?(:formatted_total_results) @search_time = args[:search_time] if args.key?(:search_time) @total_results = args[:total_results] if args.key?(:total_results) end |