Class: Google::Apis::CloudsearchV1::IconImage

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) ⇒ IconImage

Returns a new instance of IconImage.



11333
11334
11335
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11333

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

Instance Attribute Details

#alt_textString

The alternative text of this icon_url which will be used for accessibility. Corresponds to the JSON property altText

Returns:

  • (String)


11315
11316
11317
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11315

def alt_text
  @alt_text
end

#iconString

Corresponds to the JSON property icon

Returns:

  • (String)


11320
11321
11322
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11320

def icon
  @icon
end

#icon_urlString

Corresponds to the JSON property iconUrl

Returns:

  • (String)


11325
11326
11327
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11325

def icon_url
  @icon_url
end

#image_styleString

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

Returns:

  • (String)


11331
11332
11333
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11331

def image_style
  @image_style
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11338
11339
11340
11341
11342
11343
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11338

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