Class: Stripe::Billing::Alert::CreateParams::CreditBalanceThreshold::Lte::Monetary

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/billing/alert.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(currency: nil, value: nil) ⇒ Monetary

Returns a new instance of Monetary.



216
217
218
219
# File 'lib/stripe/resources/billing/alert.rb', line 216

def initialize(currency: nil, value: nil)
  @currency = currency
  @value = value
end

Instance Attribute Details

#currencyObject

Three-letter [ISO code for the currency](stripe.com/docs/currencies) of the ‘value` parameter.



212
213
214
# File 'lib/stripe/resources/billing/alert.rb', line 212

def currency
  @currency
end

#valueObject

An integer representing the amount of the threshold.



214
215
216
# File 'lib/stripe/resources/billing/alert.rb', line 214

def value
  @value
end