Class: Google::Apis::CssV1::HeadlineOfferSubscriptionCost
- Inherits:
-
Object
- Object
- Google::Apis::CssV1::HeadlineOfferSubscriptionCost
- 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
-
#amount ⇒ Google::Apis::CssV1::Price
The price represented as a number and currency.
-
#period ⇒ String
The type of subscription period.
-
#period_length ⇒ Fixnum
The number of subscription periods the buyer has to pay.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HeadlineOfferSubscriptionCost
constructor
A new instance of HeadlineOfferSubscriptionCost.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HeadlineOfferSubscriptionCost
Returns a new instance of HeadlineOfferSubscriptionCost.
842 843 844 |
# File 'lib/google/apis/css_v1/classes.rb', line 842 def initialize(**args) update!(**args) end |
Instance Attribute Details
#amount ⇒ Google::Apis::CssV1::Price
The price represented as a number and currency.
Corresponds to the JSON property amount
830 831 832 |
# File 'lib/google/apis/css_v1/classes.rb', line 830 def amount @amount end |
#period ⇒ String
The type of subscription period. Supported values are: * "month" * "year"
Corresponds to the JSON property period
835 836 837 |
# File 'lib/google/apis/css_v1/classes.rb', line 835 def period @period end |
#period_length ⇒ Fixnum
The number of subscription periods the buyer has to pay.
Corresponds to the JSON property periodLength
840 841 842 |
# File 'lib/google/apis/css_v1/classes.rb', line 840 def period_length @period_length end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
847 848 849 850 851 |
# File 'lib/google/apis/css_v1/classes.rb', line 847 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 |