Class: Stripe::PriceCreateParams::TransformQuantity
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PriceCreateParams::TransformQuantity
- Defined in:
- lib/stripe/params/price_create_params.rb
Instance Attribute Summary collapse
-
#divide_by ⇒ Object
Divide usage by this number.
-
#round ⇒ Object
After division, either round the result
upordown.
Instance Method Summary collapse
-
#initialize(divide_by: nil, round: nil) ⇒ TransformQuantity
constructor
A new instance of TransformQuantity.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(divide_by: nil, round: nil) ⇒ TransformQuantity
Returns a new instance of TransformQuantity.
219 220 221 222 |
# File 'lib/stripe/params/price_create_params.rb', line 219 def initialize(divide_by: nil, round: nil) @divide_by = divide_by @round = round end |
Instance Attribute Details
#divide_by ⇒ Object
Divide usage by this number.
215 216 217 |
# File 'lib/stripe/params/price_create_params.rb', line 215 def divide_by @divide_by end |
#round ⇒ Object
After division, either round the result up or down.
217 218 219 |
# File 'lib/stripe/params/price_create_params.rb', line 217 def round @round end |