Class: Google::Apis::CloudsearchV1::Button
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::Button
- 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
-
#image_button ⇒ Google::Apis::CloudsearchV1::ImageButton
Corresponds to the JSON property
imageButton. -
#text_button ⇒ Google::Apis::CloudsearchV1::TextButton
Corresponds to the JSON property
textButton.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Button
constructor
A new instance of Button.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Button
Returns a new instance of Button.
4916 4917 4918 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4916 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image_button ⇒ Google::Apis::CloudsearchV1::ImageButton
Corresponds to the JSON property imageButton
4909 4910 4911 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4909 def @image_button end |
#text_button ⇒ Google::Apis::CloudsearchV1::TextButton
Corresponds to the JSON property textButton
4914 4915 4916 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4914 def @text_button end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4921 4922 4923 4924 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4921 def update!(**args) @image_button = args[:image_button] if args.key?(:image_button) @text_button = args[:text_button] if args.key?(:text_button) end |