Class: Google::Apis::CloudsearchV1::IconImage
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::IconImage
- 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
-
#alt_text ⇒ String
The alternative text of this icon_url which will be used for accessibility.
-
#icon ⇒ String
Corresponds to the JSON property
icon. -
#icon_url ⇒ String
Corresponds to the JSON property
iconUrl. -
#image_style ⇒ String
The image cropping style.
Instance Method Summary collapse
-
#initialize(**args) ⇒ IconImage
constructor
A new instance of IconImage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ IconImage
Returns a new instance of IconImage.
9389 9390 9391 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9389 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alt_text ⇒ String
The alternative text of this icon_url which will be used for accessibility.
Corresponds to the JSON property altText
9371 9372 9373 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9371 def alt_text @alt_text end |
#icon ⇒ String
Corresponds to the JSON property icon
9376 9377 9378 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9376 def icon @icon end |
#icon_url ⇒ String
Corresponds to the JSON property iconUrl
9381 9382 9383 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9381 def icon_url @icon_url end |
#image_style ⇒ String
The image cropping style. Note that icons with a CIRCLE style are rendered
larger than the default icon size.
Corresponds to the JSON property imageStyle
9387 9388 9389 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9387 def image_style @image_style end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9394 9395 9396 9397 9398 9399 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9394 def update!(**args) @alt_text = args[:alt_text] if args.key?(:alt_text) @icon = args[:icon] if args.key?(:icon) @icon_url = args[:icon_url] if args.key?(:icon_url) @image_style = args[:image_style] if args.key?(:image_style) end |