Class: Google::Apis::ContentV2_1::Installment
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::Installment
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Instance Attribute Summary collapse
-
#amount ⇒ Google::Apis::ContentV2_1::Price
The amount the buyer has to pay per month.
-
#months ⇒ Fixnum
The number of installments the buyer has to pay.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Installment
constructor
A new instance of Installment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Installment
Returns a new instance of Installment.
3368 3369 3370 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3368 def initialize(**args) update!(**args) end |
Instance Attribute Details
#amount ⇒ Google::Apis::ContentV2_1::Price
The amount the buyer has to pay per month.
Corresponds to the JSON property amount
3361 3362 3363 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3361 def amount @amount end |
#months ⇒ Fixnum
The number of installments the buyer has to pay.
Corresponds to the JSON property months
3366 3367 3368 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3366 def months @months end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3373 3374 3375 3376 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3373 def update!(**args) @amount = args[:amount] if args.key?(:amount) @months = args[:months] if args.key?(:months) end |