Class: Google::Apis::ChatV1::GoogleAppsCardV1ChipList

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

A list of chips layed out horizontally, which can either scroll horizontally or wrap to the next line. Google Chat apps:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsCardV1ChipList

Returns a new instance of GoogleAppsCardV1ChipList.



1882
1883
1884
# File 'lib/google/apis/chat_v1/classes.rb', line 1882

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

Instance Attribute Details

#chipsArray<Google::Apis::ChatV1::GoogleAppsCardV1Chip>

An array of chips. Corresponds to the JSON property chips



1875
1876
1877
# File 'lib/google/apis/chat_v1/classes.rb', line 1875

def chips
  @chips
end

#layoutString

Specified chip list layout. Corresponds to the JSON property layout

Returns:

  • (String)


1880
1881
1882
# File 'lib/google/apis/chat_v1/classes.rb', line 1880

def layout
  @layout
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1887
1888
1889
1890
# File 'lib/google/apis/chat_v1/classes.rb', line 1887

def update!(**args)
  @chips = args[:chips] if args.key?(:chips)
  @layout = args[:layout] if args.key?(:layout)
end