Class: Stripe::Billing::Alert::CreateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Billing::Alert::CreateParams
- Defined in:
- lib/stripe/resources/billing/alert.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) ⇒ CreateParams
constructor
A new instance of CreateParams.
Methods inherited from RequestParams
Constructor Details
#initialize(alert_type: nil, expand: nil, title: nil, usage_threshold: nil) ⇒ CreateParams
Returns a new instance of CreateParams.
102 103 104 105 106 107 |
# File 'lib/stripe/resources/billing/alert.rb', line 102 def initialize(alert_type: nil, expand: nil, title: nil, usage_threshold: nil) @alert_type = alert_type @expand = @title = title @usage_threshold = usage_threshold end |
Instance Attribute Details
#alert_type ⇒ Object
The type of alert to create.
94 95 96 |
# File 'lib/stripe/resources/billing/alert.rb', line 94 def alert_type @alert_type end |
#expand ⇒ Object
Specifies which fields in the response should be expanded.
96 97 98 |
# File 'lib/stripe/resources/billing/alert.rb', line 96 def @expand end |
#title ⇒ Object
The title of the alert.
98 99 100 |
# File 'lib/stripe/resources/billing/alert.rb', line 98 def title @title end |
#usage_threshold ⇒ Object
The configuration of the usage threshold.
100 101 102 |
# File 'lib/stripe/resources/billing/alert.rb', line 100 def usage_threshold @usage_threshold end |