Class: Google::Apis::CssV1::HeadlineOfferInstallment

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HeadlineOfferInstallment

Returns a new instance of HeadlineOfferInstallment.



811
812
813
# File 'lib/google/apis/css_v1/classes.rb', line 811

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

Instance Attribute Details

#amountGoogle::Apis::CssV1::Price

The price represented as a number and currency. Corresponds to the JSON property amount



799
800
801
# File 'lib/google/apis/css_v1/classes.rb', line 799

def amount
  @amount
end

#downpaymentGoogle::Apis::CssV1::Price

The price represented as a number and currency. Corresponds to the JSON property downpayment



804
805
806
# File 'lib/google/apis/css_v1/classes.rb', line 804

def downpayment
  @downpayment
end

#monthsFixnum

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

Returns:

  • (Fixnum)


809
810
811
# File 'lib/google/apis/css_v1/classes.rb', line 809

def months
  @months
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



816
817
818
819
820
# File 'lib/google/apis/css_v1/classes.rb', line 816

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