Class: Google::Apis::ChatV1::GoogleAppsCardV1GridItem
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::GoogleAppsCardV1GridItem
- 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
Overview
Represents a single item in the grid layout.
Instance Attribute Summary collapse
-
#id ⇒ String
A user-specified identifier for this grid item.
-
#image ⇒ Google::Apis::ChatV1::GoogleAppsCardV1ImageComponent
The image that displays in the grid item.
-
#layout ⇒ String
The layout to use for the grid item.
-
#subtitle ⇒ String
The grid item's subtitle.
-
#text_alignment ⇒ String
The horizontal alignment of the grid item's text.
-
#title ⇒ String
The grid item's title.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsCardV1GridItem
constructor
A new instance of GoogleAppsCardV1GridItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsCardV1GridItem
Returns a new instance of GoogleAppsCardV1GridItem.
1479 1480 1481 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1479 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
A user-specified identifier for this grid item. This identifier is returned in
the parent Grid's onClick callback parameters.
Corresponds to the JSON property id
1452 1453 1454 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1452 def id @id end |
#image ⇒ Google::Apis::ChatV1::GoogleAppsCardV1ImageComponent
The image that displays in the grid item.
Corresponds to the JSON property image
1457 1458 1459 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1457 def image @image end |
#layout ⇒ String
The layout to use for the grid item.
Corresponds to the JSON property layout
1462 1463 1464 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1462 def layout @layout end |
#subtitle ⇒ String
The grid item's subtitle.
Corresponds to the JSON property subtitle
1467 1468 1469 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1467 def subtitle @subtitle end |
#text_alignment ⇒ String
The horizontal alignment of the grid item's text.
Corresponds to the JSON property textAlignment
1472 1473 1474 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1472 def text_alignment @text_alignment end |
#title ⇒ String
The grid item's title.
Corresponds to the JSON property title
1477 1478 1479 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1477 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1484 1485 1486 1487 1488 1489 1490 1491 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1484 def update!(**args) @id = args[:id] if args.key?(:id) @image = args[:image] if args.key?(:image) @layout = args[:layout] if args.key?(:layout) @subtitle = args[:subtitle] if args.key?(:subtitle) @text_alignment = args[:text_alignment] if args.key?(:text_alignment) @title = args[:title] if args.key?(:title) end |