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 an item in a grid layout. Items can contain text, an image, or both text and an image. Google Workspace Add-ons and Chat apps:
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.
2311 2312 2313 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2311 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
2288 2289 2290 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2288 def id @id end |
#image ⇒ Google::Apis::ChatV1::GoogleAppsCardV1ImageComponent
Represents an image. Google Workspace Add-ons and Chat apps:
Corresponds to the JSON property image
2294 2295 2296 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2294 def image @image end |
#layout ⇒ String
The layout to use for the grid item.
Corresponds to the JSON property layout
2299 2300 2301 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2299 def layout @layout end |
#subtitle ⇒ String
The grid item's subtitle.
Corresponds to the JSON property subtitle
2304 2305 2306 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2304 def subtitle @subtitle end |
#title ⇒ String
The grid item's title.
Corresponds to the JSON property title
2309 2310 2311 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2309 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2316 2317 2318 2319 2320 2321 2322 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2316 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 |