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
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(interval: nil, interval_count: nil) ⇒ Duration
Returns a new instance of Duration.
1084 1085 1086 1087 |
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 1084 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`.
1080 1081 1082 |
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 1080 def interval @interval end |
#interval_count ⇒ Object
The multiplier applied to the interval.
1082 1083 1084 |
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 1082 def interval_count @interval_count end |