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.
843 844 845 |
# File 'lib/google/apis/css_v1/classes.rb', line 843 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
831 832 833 |
# File 'lib/google/apis/css_v1/classes.rb', line 831 def amount @amount end |
#period ⇒ String
The type of subscription period. Supported values are: * "month
" * "year
"
Corresponds to the JSON property period
836 837 838 |
# File 'lib/google/apis/css_v1/classes.rb', line 836 def period @period end |
#period_length ⇒ Fixnum
The number of subscription periods the buyer has to pay.
Corresponds to the JSON property periodLength
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 |