Class: Google::Apis::CssV1::HeadlineOfferInstallment
- Inherits:
-
Object
- Object
- Google::Apis::CssV1::HeadlineOfferInstallment
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/css_v1/classes.rb,
lib/google/apis/css_v1/representations.rb,
lib/google/apis/css_v1/representations.rb
Overview
A message that represents installment.
Instance Attribute Summary collapse
-
#amount ⇒ Google::Apis::CssV1::Price
The price represented as a number and currency.
-
#downpayment ⇒ Google::Apis::CssV1::Price
The price represented as a number and currency.
-
#months ⇒ Fixnum
The number of installments the buyer has to pay.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HeadlineOfferInstallment
constructor
A new instance of HeadlineOfferInstallment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HeadlineOfferInstallment
Returns a new instance of HeadlineOfferInstallment.
812 813 814 |
# File 'lib/google/apis/css_v1/classes.rb', line 812 def initialize(**args) update!(**args) end |
Instance Attribute Details
#amount ⇒ Google::Apis::CssV1::Price
The price represented as a number and currency.
Corresponds to the JSON property amount
800 801 802 |
# File 'lib/google/apis/css_v1/classes.rb', line 800 def amount @amount end |
#downpayment ⇒ Google::Apis::CssV1::Price
The price represented as a number and currency.
Corresponds to the JSON property downpayment
805 806 807 |
# File 'lib/google/apis/css_v1/classes.rb', line 805 def downpayment @downpayment end |
#months ⇒ Fixnum
The number of installments the buyer has to pay.
Corresponds to the JSON property months
810 811 812 |
# File 'lib/google/apis/css_v1/classes.rb', line 810 def months @months end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
817 818 819 820 821 |
# File 'lib/google/apis/css_v1/classes.rb', line 817 def update!(**args) @amount = args[:amount] if args.key?(:amount) @downpayment = args[:downpayment] if args.key?(:downpayment) @months = args[:months] if args.key?(:months) end |