Class: Google::Apis::MybusinessplaceactionsV1::FixedFee

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

Overview

The fixed fee required for the fulfillment method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FixedFee

Returns a new instance of FixedFee.



156
157
158
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 156

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

Instance Attribute Details

#amountGoogle::Apis::MybusinessplaceactionsV1::Money

Represents an amount of money with its currency type. Corresponds to the JSON property amount



154
155
156
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 154

def amount
  @amount
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



161
162
163
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 161

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