Class: Google::Apis::CloudsearchV1::ImageKeyValue
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::ImageKeyValue
- 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
Overview
This is deprecated and please use KeyValue.
Instance Attribute Summary collapse
-
#icon ⇒ String
Corresponds to the JSON property
icon. -
#icon_url ⇒ String
Corresponds to the JSON property
iconUrl. -
#on_click ⇒ Google::Apis::CloudsearchV1::OnClick
Corresponds to the JSON property
onClick. -
#text ⇒ String
Corresponds to the JSON property
text.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ImageKeyValue
constructor
A new instance of ImageKeyValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ImageKeyValue
Returns a new instance of ImageKeyValue.
9606 9607 9608 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9606 def initialize(**args) update!(**args) end |
Instance Attribute Details
#icon ⇒ String
Corresponds to the JSON property icon
9589 9590 9591 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9589 def icon @icon end |
#icon_url ⇒ String
Corresponds to the JSON property iconUrl
9594 9595 9596 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9594 def icon_url @icon_url end |
#on_click ⇒ Google::Apis::CloudsearchV1::OnClick
Corresponds to the JSON property onClick
9599 9600 9601 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9599 def on_click @on_click end |
#text ⇒ String
Corresponds to the JSON property text
9604 9605 9606 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9604 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9611 9612 9613 9614 9615 9616 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9611 def update!(**args) @icon = args[:icon] if args.key?(:icon) @icon_url = args[:icon_url] if args.key?(:icon_url) @on_click = args[:on_click] if args.key?(:on_click) @text = args[:text] if args.key?(:text) end |