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.
666 667 668 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 666 def initialize(**args) update!(**args) end |
Instance Attribute Details
#context ⇒ Google::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 |
#items ⇒ Array<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 |
#kind ⇒ String
Corresponds to the JSON property kind
639 640 641 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 639 def kind @kind end |
#promotions ⇒ Array<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 |
#queries ⇒ Hash<String,Array<Google::Apis::CustomsearchV1::Query>>
Corresponds to the JSON property queries
649 650 651 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 649 def queries @queries end |
#search_information ⇒ Google::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 |
#spelling ⇒ Google::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 |
#url ⇒ Google::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 |