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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Installment

Returns a new instance of Installment.



2898
2899
2900
# File 'lib/google/apis/content_v2/classes.rb', line 2898

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



2891
2892
2893
# File 'lib/google/apis/content_v2/classes.rb', line 2891

def amount
  @amount
end

#monthsFixnum

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

Returns:

  • (Fixnum)


2896
2897
2898
# File 'lib/google/apis/content_v2/classes.rb', line 2896

def months
  @months
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2903
2904
2905
2906
# File 'lib/google/apis/content_v2/classes.rb', line 2903

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