Class: Stripe::Billing::AlertCreateParams::SpendThreshold::Gte
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Billing::AlertCreateParams::SpendThreshold::Gte
- Defined in:
- lib/stripe/params/billing/alert_create_params.rb
Defined Under Namespace
Classes: Amount, CustomPricingUnit
Instance Attribute Summary collapse
-
#amount ⇒ Object
The monetary amount.
-
#custom_pricing_unit ⇒ Object
The custom pricing unit amount.
-
#type ⇒ Object
The type of the threshold amount.
Instance Method Summary collapse
-
#initialize(amount: nil, custom_pricing_unit: nil, type: nil) ⇒ Gte
constructor
A new instance of Gte.
Methods inherited from RequestParams
Constructor Details
#initialize(amount: nil, custom_pricing_unit: nil, type: nil) ⇒ Gte
Returns a new instance of Gte.
173 174 175 176 177 |
# File 'lib/stripe/params/billing/alert_create_params.rb', line 173 def initialize(amount: nil, custom_pricing_unit: nil, type: nil) @amount = amount @custom_pricing_unit = custom_pricing_unit @type = type end |
Instance Attribute Details
#amount ⇒ Object
The monetary amount. Required when type is ‘amount`.
167 168 169 |
# File 'lib/stripe/params/billing/alert_create_params.rb', line 167 def amount @amount end |
#custom_pricing_unit ⇒ Object
The custom pricing unit amount. Required when type is ‘custom_pricing_unit`.
169 170 171 |
# File 'lib/stripe/params/billing/alert_create_params.rb', line 169 def custom_pricing_unit @custom_pricing_unit end |
#type ⇒ Object
The type of the threshold amount.
171 172 173 |
# File 'lib/stripe/params/billing/alert_create_params.rb', line 171 def type @type end |