Class: Google::Apis::ContentV2_1::ProductSubscriptionCost
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ProductSubscriptionCost
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Instance Attribute Summary collapse
-
#amount ⇒ Google::Apis::ContentV2_1::Price
The amount the buyer has to pay per subscription period.
-
#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) ⇒ ProductSubscriptionCost
constructor
A new instance of ProductSubscriptionCost.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ProductSubscriptionCost
Returns a new instance of ProductSubscriptionCost.
10135 10136 10137 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10135 def initialize(**args) update!(**args) end |
Instance Attribute Details
#amount ⇒ Google::Apis::ContentV2_1::Price
The amount the buyer has to pay per subscription period.
Corresponds to the JSON property amount
10123 10124 10125 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10123 def amount @amount end |
#period ⇒ String
The type of subscription period. - "month
" - "year
"
Corresponds to the JSON property period
10128 10129 10130 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10128 def period @period end |
#period_length ⇒ Fixnum
The number of subscription periods the buyer has to pay.
Corresponds to the JSON property periodLength
10133 10134 10135 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10133 def period_length @period_length end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10140 10141 10142 10143 10144 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10140 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 |