Class: Google::Apis::PaymentsresellersubscriptionV1::CycleOptions
- Inherits:
-
Object
- Object
- Google::Apis::PaymentsresellersubscriptionV1::CycleOptions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/paymentsresellersubscription_v1/classes.rb,
lib/google/apis/paymentsresellersubscription_v1/representations.rb,
lib/google/apis/paymentsresellersubscription_v1/representations.rb
Overview
The cycle options when starting and resuming a subscription.
Instance Attribute Summary collapse
-
#initial_cycle_duration ⇒ Google::Apis::PaymentsresellersubscriptionV1::Duration
Describes the length of a period of a time.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CycleOptions
constructor
A new instance of CycleOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CycleOptions
Returns a new instance of CycleOptions.
166 167 168 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 166 def initialize(**args) update!(**args) end |
Instance Attribute Details
#initial_cycle_duration ⇒ Google::Apis::PaymentsresellersubscriptionV1::Duration
Describes the length of a period of a time.
Corresponds to the JSON property initialCycleDuration
164 165 166 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 164 def initial_cycle_duration @initial_cycle_duration end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
171 172 173 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 171 def update!(**args) @initial_cycle_duration = args[:initial_cycle_duration] if args.key?(:initial_cycle_duration) end |