Class: Google::Apis::WalletobjectsV1::AddMessageRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/walletobjects_v1/classes.rb,
lib/google/apis/walletobjects_v1/representations.rb,
lib/google/apis/walletobjects_v1/representations.rb

Overview

Resource used when the AddMessage endpoints are called.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AddMessageRequest

Returns a new instance of AddMessageRequest.



83
84
85
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 83

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

Instance Attribute Details

#messageGoogle::Apis::WalletobjectsV1::Message

A message that will be displayed with a Valuable Corresponds to the JSON property message



81
82
83
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 81

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



88
89
90
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 88

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