Class: Google::Apis::Adexchangebuyer2V2beta1::Price
- Inherits:
-
Object
- Object
- Google::Apis::Adexchangebuyer2V2beta1::Price
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adexchangebuyer2_v2beta1/classes.rb,
generated/google/apis/adexchangebuyer2_v2beta1/representations.rb,
generated/google/apis/adexchangebuyer2_v2beta1/representations.rb
Overview
Represents a price and a pricing type for a product / deal.
Instance Attribute Summary collapse
-
#amount ⇒ Google::Apis::Adexchangebuyer2V2beta1::Money
Represents an amount of money with its currency type.
-
#pricing_type ⇒ String
The pricing type for the deal/product.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Price
constructor
A new instance of Price.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Price
Returns a new instance of Price
3126 3127 3128 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3126 def initialize(**args) update!(**args) end |
Instance Attribute Details
#amount ⇒ Google::Apis::Adexchangebuyer2V2beta1::Money
Represents an amount of money with its currency type.
Corresponds to the JSON property amount
3119 3120 3121 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3119 def amount @amount end |
#pricing_type ⇒ String
The pricing type for the deal/product. (default: CPM)
Corresponds to the JSON property pricingType
3124 3125 3126 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3124 def pricing_type @pricing_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3131 3132 3133 3134 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3131 def update!(**args) @amount = args[:amount] if args.key?(:amount) @pricing_type = args[:pricing_type] if args.key?(:pricing_type) end |