Class: Google::Apis::ContentV2::Installment

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Installment

Returns a new instance of Installment



2202
2203
2204
# File 'generated/google/apis/content_v2/classes.rb', line 2202

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

Instance Attribute Details

#amountGoogle::Apis::ContentV2::Price

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



2195
2196
2197
# File 'generated/google/apis/content_v2/classes.rb', line 2195

def amount
  @amount
end

#monthsFixnum

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

Returns:

  • (Fixnum)


2200
2201
2202
# File 'generated/google/apis/content_v2/classes.rb', line 2200

def months
  @months
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2207
2208
2209
2210
# File 'generated/google/apis/content_v2/classes.rb', line 2207

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