Class: Stripe::Billing::AlertCreateParams::UsageThreshold
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Billing::AlertCreateParams::UsageThreshold
- Defined in:
- lib/stripe/params/billing/alert_create_params.rb
Defined Under Namespace
Classes: Filter
Instance Attribute Summary collapse
-
#filters ⇒ Object
The filters allows limiting the scope of this usage alert.
-
#gte ⇒ Object
Defines at which value the alert will fire.
-
#meter ⇒ Object
The [Billing Meter](/api/billing/meter) ID whose usage is monitored.
-
#recurrence ⇒ Object
Defines how the alert will behave.
Instance Method Summary collapse
-
#initialize(filters: nil, gte: nil, meter: nil, recurrence: nil) ⇒ UsageThreshold
constructor
A new instance of UsageThreshold.
Methods inherited from RequestParams
Constructor Details
#initialize(filters: nil, gte: nil, meter: nil, recurrence: nil) ⇒ UsageThreshold
Returns a new instance of UsageThreshold.
28 29 30 31 32 33 |
# File 'lib/stripe/params/billing/alert_create_params.rb', line 28 def initialize(filters: nil, gte: nil, meter: nil, recurrence: nil) @filters = filters @gte = gte @meter = meter @recurrence = recurrence end |
Instance Attribute Details
#filters ⇒ Object
The filters allows limiting the scope of this usage alert. You can only specify up to one filter at this time.
20 21 22 |
# File 'lib/stripe/params/billing/alert_create_params.rb', line 20 def filters @filters end |
#gte ⇒ Object
Defines at which value the alert will fire.
22 23 24 |
# File 'lib/stripe/params/billing/alert_create_params.rb', line 22 def gte @gte end |
#meter ⇒ Object
The [Billing Meter](/api/billing/meter) ID whose usage is monitored.
24 25 26 |
# File 'lib/stripe/params/billing/alert_create_params.rb', line 24 def meter @meter end |
#recurrence ⇒ Object
Defines how the alert will behave.
26 27 28 |
# File 'lib/stripe/params/billing/alert_create_params.rb', line 26 def recurrence @recurrence end |