Class: Google::Apis::CustomsearchV1::Search::Url
- Inherits:
-
Object
- Object
- Google::Apis::CustomsearchV1::Search::Url
- 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
Overview
OpenSearch template and URL.
Instance Attribute Summary collapse
-
#template ⇒ String
The actual OpenSearch template for this API.
-
#type ⇒ String
The MIME type of the OpenSearch URL template for the Custom Search JSON API.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Url
constructor
A new instance of Url.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Url
Returns a new instance of Url.
1408 1409 1410 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 1408 def initialize(**args) update!(**args) end |
Instance Attribute Details
#template ⇒ String
The actual OpenSearch template for this API.
Corresponds to the JSON property template
1401 1402 1403 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 1401 def template @template end |
#type ⇒ String
The MIME type of the OpenSearch URL template for the Custom Search JSON API.
Corresponds to the JSON property type
1406 1407 1408 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 1406 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1413 1414 1415 1416 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 1413 def update!(**args) @template = args[:template] if args.key?(:template) @type = args[:type] if args.key?(:type) end |