Class: Google::Apis::ChatV1::GoogleAppsCardV1ExtraData

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

Extra data for an android intent. Valid keys are defined in the hosting app contract.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsCardV1ExtraData

Returns a new instance of GoogleAppsCardV1ExtraData.



1496
1497
1498
# File 'lib/google/apis/chat_v1/classes.rb', line 1496

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

Instance Attribute Details

#keyString

A key for the intent extra data. Corresponds to the JSON property key

Returns:

  • (String)


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

def key
  @key
end

#valueString

Value for the given extra data key. Corresponds to the JSON property value

Returns:

  • (String)


1494
1495
1496
# File 'lib/google/apis/chat_v1/classes.rb', line 1494

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1501
1502
1503
1504
# File 'lib/google/apis/chat_v1/classes.rb', line 1501

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