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.
-
#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.
1676 1677 1678 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1676 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
1654 1655 1656 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1654 def id @id end |
#image ⇒ Google::Apis::ChatV1::GoogleAppsCardV1ImageComponent
Represents an image.
Corresponds to the JSON property image
1659 1660 1661 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1659 def image @image end |
#layout ⇒ String
The layout to use for the grid item.
Corresponds to the JSON property layout
1664 1665 1666 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1664 def layout @layout end |
#subtitle ⇒ String
The grid item's subtitle.
Corresponds to the JSON property subtitle
1669 1670 1671 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1669 def subtitle @subtitle end |
#title ⇒ String
The grid item's title.
Corresponds to the JSON property title
1674 1675 1676 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1674 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1681 1682 1683 1684 1685 1686 1687 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1681 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) @title = args[:title] if args.key?(:title) end |