Class: Google::Apis::AuthorizedbuyersmarketplaceV1::Price
- Inherits:
-
Object
- Object
- Google::Apis::AuthorizedbuyersmarketplaceV1::Price
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb,
lib/google/apis/authorizedbuyersmarketplace_v1/representations.rb,
lib/google/apis/authorizedbuyersmarketplace_v1/representations.rb more...
Overview
Represents a price and a pricing type for a deal.
Instance Attribute Summary collapse
-
#amount ⇒ Google::Apis::AuthorizedbuyersmarketplaceV1::Money
Represents an amount of money with its currency type.
-
#type ⇒ String
The pricing type for the deal.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Price
constructor
A new instance of Price.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Price
Returns a new instance of Price.
1397 1398 1399 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1397 def initialize(**args) update!(**args) end |
Instance Attribute Details
#amount ⇒ Google::Apis::AuthorizedbuyersmarketplaceV1::Money
Represents an amount of money with its currency type.
Corresponds to the JSON property amount
1390 1391 1392 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1390 def amount @amount end |
#type ⇒ String
The pricing type for the deal.
Corresponds to the JSON property type
1395 1396 1397 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1395 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1402 1403 1404 1405 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1402 def update!(**args) @amount = args[:amount] if args.key?(:amount) @type = args[:type] if args.key?(:type) end |