Class: Stripe::PriceService::ListParams::Recurring
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PriceService::ListParams::Recurring
- Defined in:
- lib/stripe/services/price_service.rb
Instance Attribute Summary collapse
-
#interval ⇒ Object
Filter by billing frequency.
-
#meter ⇒ Object
Filter by the price’s meter.
-
#usage_type ⇒ Object
Filter by the usage type for this price.
Instance Method Summary collapse
-
#initialize(interval: nil, meter: nil, usage_type: nil) ⇒ Recurring
constructor
A new instance of Recurring.
Methods inherited from RequestParams
Constructor Details
#initialize(interval: nil, meter: nil, usage_type: nil) ⇒ Recurring
Returns a new instance of Recurring.
33 34 35 36 37 |
# File 'lib/stripe/services/price_service.rb', line 33 def initialize(interval: nil, meter: nil, usage_type: nil) @interval = interval @meter = meter @usage_type = usage_type end |
Instance Attribute Details
#interval ⇒ Object
Filter by billing frequency. Either ‘day`, `week`, `month` or `year`.
27 28 29 |
# File 'lib/stripe/services/price_service.rb', line 27 def interval @interval end |
#meter ⇒ Object
Filter by the price’s meter.
29 30 31 |
# File 'lib/stripe/services/price_service.rb', line 29 def meter @meter end |
#usage_type ⇒ Object
Filter by the usage type for this price. Can be either ‘metered` or `licensed`.
31 32 33 |
# File 'lib/stripe/services/price_service.rb', line 31 def usage_type @usage_type end |