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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/customsearch_v1/classes.rb,
lib/google/apis/customsearch_v1/representations.rb,
lib/google/apis/customsearch_v1/representations.rb

Overview

OpenSearch template and URL.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Url

Returns a new instance of Url.



1411
1412
1413
# File 'lib/google/apis/customsearch_v1/classes.rb', line 1411

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)


1404
1405
1406
# File 'lib/google/apis/customsearch_v1/classes.rb', line 1404

def template
  @template
end

#typeString

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

Returns:

  • (String)


1409
1410
1411
# File 'lib/google/apis/customsearch_v1/classes.rb', line 1409

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1416
1417
1418
1419
# File 'lib/google/apis/customsearch_v1/classes.rb', line 1416

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