Class: Stripe::Billing::CreditGrant::CreateParams::Amount::Monetary
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Billing::CreditGrant::CreateParams::Amount::Monetary
- Defined in:
- lib/stripe/resources/billing/credit_grant.rb
Instance Attribute Summary collapse
-
#currency ⇒ Object
Three-letter [ISO code for the currency](stripe.com/docs/currencies) of the ‘value` parameter.
-
#value ⇒ Object
A positive integer representing the amount of the credit grant.
Instance Method Summary collapse
-
#initialize(currency: nil, value: nil) ⇒ Monetary
constructor
A new instance of Monetary.
Methods inherited from RequestParams
Constructor Details
#initialize(currency: nil, value: nil) ⇒ Monetary
Returns a new instance of Monetary.
82 83 84 85 |
# File 'lib/stripe/resources/billing/credit_grant.rb', line 82 def initialize(currency: nil, value: nil) @currency = currency @value = value end |
Instance Attribute Details
#currency ⇒ Object
Three-letter [ISO code for the currency](stripe.com/docs/currencies) of the ‘value` parameter.
78 79 80 |
# File 'lib/stripe/resources/billing/credit_grant.rb', line 78 def currency @currency end |
#value ⇒ Object
A positive integer representing the amount of the credit grant.
80 81 82 |
# File 'lib/stripe/resources/billing/credit_grant.rb', line 80 def value @value end |