Class: Google::Apis::CustomsearchV1::Search::Url

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Url

Returns a new instance of Url.



1593
1594
1595
# File 'generated/google/apis/customsearch_v1/classes.rb', line 1593

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#templateString

The actual OpenSearch template for this API. Corresponds to the JSON property template

Returns:

  • (String)


1586
1587
1588
# File 'generated/google/apis/customsearch_v1/classes.rb', line 1586

def template
  @template
end

#typeString

The MIME type of the OpenSearch URL template for the Custom Search API. Corresponds to the JSON property type

Returns:

  • (String)


1591
1592
1593
# File 'generated/google/apis/customsearch_v1/classes.rb', line 1591

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1598
1599
1600
1601
# File 'generated/google/apis/customsearch_v1/classes.rb', line 1598

def update!(**args)
  @template = args[:template] if args.key?(:template)
  @type = args[:type] if args.key?(:type)
end