Class: Stripe::Billing::AlertCreateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Billing::AlertCreateParams
- Defined in:
- lib/stripe/params/billing/alert_create_params.rb
Defined Under Namespace
Classes: UsageThreshold
Instance Attribute Summary collapse
-
#alert_type ⇒ Object
The type of alert to create.
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#title ⇒ Object
The title of the alert.
-
#usage_threshold ⇒ Object
The configuration of the usage threshold.
Instance Method Summary collapse
-
#initialize(alert_type: nil, expand: nil, title: nil, usage_threshold: nil) ⇒ AlertCreateParams
constructor
A new instance of AlertCreateParams.
Methods inherited from RequestParams
Constructor Details
#initialize(alert_type: nil, expand: nil, title: nil, usage_threshold: nil) ⇒ AlertCreateParams
Returns a new instance of AlertCreateParams.
44 45 46 47 48 49 |
# File 'lib/stripe/params/billing/alert_create_params.rb', line 44 def initialize(alert_type: nil, expand: nil, title: nil, usage_threshold: nil) @alert_type = alert_type = @title = title @usage_threshold = usage_threshold end |
Instance Attribute Details
#alert_type ⇒ Object
The type of alert to create.
36 37 38 |
# File 'lib/stripe/params/billing/alert_create_params.rb', line 36 def alert_type @alert_type end |
#expand ⇒ Object
Specifies which fields in the response should be expanded.
38 39 40 |
# File 'lib/stripe/params/billing/alert_create_params.rb', line 38 def end |
#title ⇒ Object
The title of the alert.
40 41 42 |
# File 'lib/stripe/params/billing/alert_create_params.rb', line 40 def title @title end |
#usage_threshold ⇒ Object
The configuration of the usage threshold.
42 43 44 |
# File 'lib/stripe/params/billing/alert_create_params.rb', line 42 def usage_threshold @usage_threshold end |