Class: Google::Apis::CloudsearchV1::ImageButton

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ImageButton

Returns a new instance of ImageButton.



10836
10837
10838
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10836

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

Instance Attribute Details

#iconString

Corresponds to the JSON property icon

Returns:

  • (String)


10819
10820
10821
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10819

def icon
  @icon
end

#icon_urlString

Corresponds to the JSON property iconUrl

Returns:

  • (String)


10824
10825
10826
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10824

def icon_url
  @icon_url
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


10829
10830
10831
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10829

def name
  @name
end

#on_clickGoogle::Apis::CloudsearchV1::OnClick

Corresponds to the JSON property onClick



10834
10835
10836
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10834

def on_click
  @on_click
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10841
10842
10843
10844
10845
10846
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10841

def update!(**args)
  @icon = args[:icon] if args.key?(:icon)
  @icon_url = args[:icon_url] if args.key?(:icon_url)
  @name = args[:name] if args.key?(:name)
  @on_click = args[:on_click] if args.key?(:on_click)
end