Class: Google::Apis::ChatV1::GoogleAppsCardV1Icon

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsCardV1Icon

Returns a new instance of GoogleAppsCardV1Icon.



1571
1572
1573
# File 'lib/google/apis/chat_v1/classes.rb', line 1571

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

Instance Attribute Details

#alt_textString

The description of the icon, used for accessibility. The default value is provided if you don't specify one. Corresponds to the JSON property altText

Returns:

  • (String)


1553
1554
1555
# File 'lib/google/apis/chat_v1/classes.rb', line 1553

def alt_text
  @alt_text
end

#icon_urlString

The icon specified by a URL. Corresponds to the JSON property iconUrl

Returns:

  • (String)


1558
1559
1560
# File 'lib/google/apis/chat_v1/classes.rb', line 1558

def icon_url
  @icon_url
end

#image_typeString

The crop style applied to the image. In some cases, applying a CIRCLE crop causes the image to be drawn larger than a standard icon. Corresponds to the JSON property imageType

Returns:

  • (String)


1564
1565
1566
# File 'lib/google/apis/chat_v1/classes.rb', line 1564

def image_type
  @image_type
end

#known_iconString

The icon specified by the string name of a list of known icons. Corresponds to the JSON property knownIcon

Returns:

  • (String)


1569
1570
1571
# File 'lib/google/apis/chat_v1/classes.rb', line 1569

def known_icon
  @known_icon
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1576
1577
1578
1579
1580
1581
# File 'lib/google/apis/chat_v1/classes.rb', line 1576

def update!(**args)
  @alt_text = args[:alt_text] if args.key?(:alt_text)
  @icon_url = args[:icon_url] if args.key?(:icon_url)
  @image_type = args[:image_type] if args.key?(:image_type)
  @known_icon = args[:known_icon] if args.key?(:known_icon)
end