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.



10693
10694
10695
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10693

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)


10675
10676
10677
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10675

def alt_text
  @alt_text
end

#iconString

Corresponds to the JSON property icon

Returns:

  • (String)


10680
10681
10682
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10680

def icon
  @icon
end

#icon_urlString

Corresponds to the JSON property iconUrl

Returns:

  • (String)


10685
10686
10687
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10685

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)


10691
10692
10693
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10691

def image_style
  @image_style
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10698
10699
10700
10701
10702
10703
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10698

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