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
Represents an image.
-
#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.
1574 1575 1576 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1574 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
1547 1548 1549 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1547 def id @id end |
#image ⇒ Google::Apis::ChatV1::GoogleAppsCardV1ImageComponent
Represents an image.
Corresponds to the JSON property image
1552 1553 1554 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1552 def image @image end |
#layout ⇒ String
The layout to use for the grid item.
Corresponds to the JSON property layout
1557 1558 1559 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1557 def layout @layout end |
#subtitle ⇒ String
The grid item's subtitle.
Corresponds to the JSON property subtitle
1562 1563 1564 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1562 def subtitle @subtitle end |
#text_alignment ⇒ String
The horizontal alignment of the grid item's text.
Corresponds to the JSON property textAlignment
1567 1568 1569 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1567 def text_alignment @text_alignment end |
#title ⇒ String
The grid item's title.
Corresponds to the JSON property title
1572 1573 1574 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1572 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1579 1580 1581 1582 1583 1584 1585 1586 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1579 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 |