Class: Stripe::ProductService::CreateParams::DefaultPriceData::Recurring
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::ProductService::CreateParams::DefaultPriceData::Recurring
- Defined in:
- lib/stripe/services/product_service.rb
Instance Attribute Summary collapse
-
#interval ⇒ Object
Specifies billing frequency.
-
#interval_count ⇒ Object
The number of intervals between subscription billings.
Instance Method Summary collapse
-
#initialize(interval: nil, interval_count: nil) ⇒ Recurring
constructor
A new instance of Recurring.
Methods inherited from RequestParams
Constructor Details
#initialize(interval: nil, interval_count: nil) ⇒ Recurring
Returns a new instance of Recurring.
321 322 323 324 |
# File 'lib/stripe/services/product_service.rb', line 321 def initialize(interval: nil, interval_count: nil) @interval = interval @interval_count = interval_count end |
Instance Attribute Details
#interval ⇒ Object
Specifies billing frequency. Either ‘day`, `week`, `month` or `year`.
316 317 318 |
# File 'lib/stripe/services/product_service.rb', line 316 def interval @interval end |
#interval_count ⇒ Object
The number of intervals between subscription billings. For example, ‘interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
319 320 321 |
# File 'lib/stripe/services/product_service.rb', line 319 def interval_count @interval_count end |