Class: Stripe::Price::ListParams::Recurring

Inherits:
RequestParams show all
Defined in:
lib/stripe/resources/price.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(interval: nil, meter: nil, usage_type: nil) ⇒ Recurring

Returns a new instance of Recurring.



136
137
138
139
140
# File 'lib/stripe/resources/price.rb', line 136

def initialize(interval: nil, meter: nil, usage_type: nil)
  @interval = interval
  @meter = meter
  @usage_type = usage_type
end

Instance Attribute Details

#intervalObject

Filter by billing frequency. Either ‘day`, `week`, `month` or `year`.



130
131
132
# File 'lib/stripe/resources/price.rb', line 130

def interval
  @interval
end

#meterObject

Filter by the price’s meter.



132
133
134
# File 'lib/stripe/resources/price.rb', line 132

def meter
  @meter
end

#usage_typeObject

Filter by the usage type for this price. Can be either ‘metered` or `licensed`.



134
135
136
# File 'lib/stripe/resources/price.rb', line 134

def usage_type
  @usage_type
end