Class: Google::Apis::KgsearchV1::SearchResponse
- Inherits:
-
Object
- Object
- Google::Apis::KgsearchV1::SearchResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/kgsearch_v1/classes.rb,
lib/google/apis/kgsearch_v1/representations.rb,
lib/google/apis/kgsearch_v1/representations.rb
Overview
Response message includes the context and a list of matching results which contain the detail of associated entities.
Instance Attribute Summary collapse
-
#_context ⇒ Object
The local context applicable for the response.
-
#_type ⇒ Object
The schema type of top-level JSON-LD object, e.g.
-
#item_list_element ⇒ Array<Object>
The item list of search results.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SearchResponse
constructor
A new instance of SearchResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SearchResponse
Returns a new instance of SearchResponse.
46 47 48 |
# File 'lib/google/apis/kgsearch_v1/classes.rb', line 46 def initialize(**args) update!(**args) end |
Instance Attribute Details
#_context ⇒ Object
The local context applicable for the response. See more details at http://www.
w3.org/TR/json-ld/#context-definitions.
Corresponds to the JSON property @context
34 35 36 |
# File 'lib/google/apis/kgsearch_v1/classes.rb', line 34 def _context @_context end |
#_type ⇒ Object
The schema type of top-level JSON-LD object, e.g. ItemList.
Corresponds to the JSON property @type
39 40 41 |
# File 'lib/google/apis/kgsearch_v1/classes.rb', line 39 def _type @_type end |
#item_list_element ⇒ Array<Object>
The item list of search results.
Corresponds to the JSON property itemListElement
44 45 46 |
# File 'lib/google/apis/kgsearch_v1/classes.rb', line 44 def item_list_element @item_list_element end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
51 52 53 54 55 |
# File 'lib/google/apis/kgsearch_v1/classes.rb', line 51 def update!(**args) @_context = args[:_context] if args.key?(:_context) @_type = args[:_type] if args.key?(:_type) @item_list_element = args[:item_list_element] if args.key?(:item_list_element) end |