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.
1478 1479 1480 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1478 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
1451 1452 1453 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1451 def id @id end |
#image ⇒ Google::Apis::ChatV1::GoogleAppsCardV1ImageComponent
The image that displays in the grid item.
Corresponds to the JSON property image
1456 1457 1458 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1456 def image @image end |
#layout ⇒ String
The layout to use for the grid item.
Corresponds to the JSON property layout
1461 1462 1463 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1461 def layout @layout end |
#subtitle ⇒ String
The grid item's subtitle.
Corresponds to the JSON property subtitle
1466 1467 1468 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1466 def subtitle @subtitle end |
#text_alignment ⇒ String
The horizontal alignment of the grid item's text.
Corresponds to the JSON property textAlignment
1471 1472 1473 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1471 def text_alignment @text_alignment end |
#title ⇒ String
The grid item's title.
Corresponds to the JSON property title
1476 1477 1478 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1476 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1483 1484 1485 1486 1487 1488 1489 1490 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1483 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 |