Class: Google::Apis::CssV1::HeadlineOfferSubscriptionCost

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

The SubscriptionCost of the product.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HeadlineOfferSubscriptionCost

Returns a new instance of HeadlineOfferSubscriptionCost.



843
844
845
# File 'lib/google/apis/css_v1/classes.rb', line 843

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



831
832
833
# File 'lib/google/apis/css_v1/classes.rb', line 831

def amount
  @amount
end

#periodString

The type of subscription period. Supported values are: * "month" * "year" Corresponds to the JSON property period

Returns:

  • (String)


836
837
838
# File 'lib/google/apis/css_v1/classes.rb', line 836

def period
  @period
end

#period_lengthFixnum

The number of subscription periods the buyer has to pay. Corresponds to the JSON property periodLength

Returns:

  • (Fixnum)


841
842
843
# File 'lib/google/apis/css_v1/classes.rb', line 841

def period_length
  @period_length
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



848
849
850
851
852
# File 'lib/google/apis/css_v1/classes.rb', line 848

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