Class: Google::Apis::ChatV1::GoogleAppsCardV1Grid

Inherits:
Object
  • Object
show all
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 Grid widget that displays items in a configurable grid layout.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsCardV1Grid

Returns a new instance of GoogleAppsCardV1Grid.



1481
1482
1483
# File 'lib/google/apis/chat_v1/classes.rb', line 1481

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#border_styleGoogle::Apis::ChatV1::GoogleAppsCardV1BorderStyle

Represents the complete border style applied to widgets. Corresponds to the JSON property borderStyle



1457
1458
1459
# File 'lib/google/apis/chat_v1/classes.rb', line 1457

def border_style
  @border_style
end

#column_countFixnum

The number of columns to display in the grid. A default value is used if this field isn't specified, and that default value is different depending on where the grid is shown (dialog versus companion). Corresponds to the JSON property columnCount

Returns:

  • (Fixnum)


1464
1465
1466
# File 'lib/google/apis/chat_v1/classes.rb', line 1464

def column_count
  @column_count
end

#itemsArray<Google::Apis::ChatV1::GoogleAppsCardV1GridItem>

The items to display in the grid. Corresponds to the JSON property items



1469
1470
1471
# File 'lib/google/apis/chat_v1/classes.rb', line 1469

def items
  @items
end

#on_clickGoogle::Apis::ChatV1::GoogleAppsCardV1OnClick

Represents the response to an onClick event. Corresponds to the JSON property onClick



1474
1475
1476
# File 'lib/google/apis/chat_v1/classes.rb', line 1474

def on_click
  @on_click
end

#titleString

The text that displays in the grid header. Corresponds to the JSON property title

Returns:

  • (String)


1479
1480
1481
# File 'lib/google/apis/chat_v1/classes.rb', line 1479

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1486
1487
1488
1489
1490
1491
1492
# File 'lib/google/apis/chat_v1/classes.rb', line 1486

def update!(**args)
  @border_style = args[:border_style] if args.key?(:border_style)
  @column_count = args[:column_count] if args.key?(:column_count)
  @items = args[:items] if args.key?(:items)
  @on_click = args[:on_click] if args.key?(:on_click)
  @title = args[:title] if args.key?(:title)
end