Class: Google::Apis::ContentV2_1::Installment

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Installment

Returns a new instance of Installment.



3568
3569
3570
# File 'lib/google/apis/content_v2_1/classes.rb', line 3568

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

Instance Attribute Details

#amountGoogle::Apis::ContentV2_1::Price

The amount the buyer has to pay per month. Corresponds to the JSON property amount



3561
3562
3563
# File 'lib/google/apis/content_v2_1/classes.rb', line 3561

def amount
  @amount
end

#monthsFixnum

The number of installments the buyer has to pay. Corresponds to the JSON property months

Returns:

  • (Fixnum)


3566
3567
3568
# File 'lib/google/apis/content_v2_1/classes.rb', line 3566

def months
  @months
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3573
3574
3575
3576
# File 'lib/google/apis/content_v2_1/classes.rb', line 3573

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