Class: Stripe::InvoiceCreatePreviewParams::ScheduleDetails::Phase::Duration
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::InvoiceCreatePreviewParams::ScheduleDetails::Phase::Duration
- Defined in:
- lib/stripe/params/invoice_create_preview_params.rb
Instance Attribute Summary collapse
-
#interval ⇒ Object
Specifies phase duration.
-
#interval_count ⇒ Object
The multiplier applied to the interval.
Instance Method Summary collapse
-
#initialize(interval: nil, interval_count: nil) ⇒ Duration
constructor
A new instance of Duration.
Methods inherited from RequestParams
Constructor Details
#initialize(interval: nil, interval_count: nil) ⇒ Duration
Returns a new instance of Duration.
486 487 488 489 |
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 486 def initialize(interval: nil, interval_count: nil) @interval = interval @interval_count = interval_count end |
Instance Attribute Details
#interval ⇒ Object
Specifies phase duration. Either ‘day`, `week`, `month` or `year`.
482 483 484 |
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 482 def interval @interval end |
#interval_count ⇒ Object
The multiplier applied to the interval.
484 485 486 |
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 484 def interval_count @interval_count end |