Class: Google::Apis::CloudsearchV1::ImageButton
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::ImageButton
- 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
-
#icon ⇒ String
Corresponds to the JSON property
icon. -
#icon_url ⇒ String
Corresponds to the JSON property
iconUrl. -
#name ⇒ String
Corresponds to the JSON property
name. -
#on_click ⇒ Google::Apis::CloudsearchV1::OnClick
Corresponds to the JSON property
onClick.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ImageButton
constructor
A new instance of ImageButton.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ImageButton
Returns a new instance of ImageButton.
10898 10899 10900 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10898 def initialize(**args) update!(**args) end |
Instance Attribute Details
#icon ⇒ String
Corresponds to the JSON property icon
10881 10882 10883 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10881 def icon @icon end |
#icon_url ⇒ String
Corresponds to the JSON property iconUrl
10886 10887 10888 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10886 def icon_url @icon_url end |
#name ⇒ String
Corresponds to the JSON property name
10891 10892 10893 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10891 def name @name end |
#on_click ⇒ Google::Apis::CloudsearchV1::OnClick
Corresponds to the JSON property onClick
10896 10897 10898 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10896 def on_click @on_click end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10903 10904 10905 10906 10907 10908 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10903 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 |