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.
1285 1286 1287 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1285 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
1258 1259 1260 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1258 def id @id end |
#image ⇒ Google::Apis::ChatV1::GoogleAppsCardV1ImageComponent
The image that displays in the grid item.
Corresponds to the JSON property image
1263 1264 1265 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1263 def image @image end |
#layout ⇒ String
The layout to use for the grid item.
Corresponds to the JSON property layout
1268 1269 1270 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1268 def layout @layout end |
#subtitle ⇒ String
The grid item's subtitle.
Corresponds to the JSON property subtitle
1273 1274 1275 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1273 def subtitle @subtitle end |
#text_alignment ⇒ String
The horizontal alignment of the grid item's text.
Corresponds to the JSON property textAlignment
1278 1279 1280 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1278 def text_alignment @text_alignment end |
#title ⇒ String
The grid item's title.
Corresponds to the JSON property title
1283 1284 1285 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1283 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1290 1291 1292 1293 1294 1295 1296 1297 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1290 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 |