Class: Stripe::PriceService::CreateParams::TransformQuantity
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PriceService::CreateParams::TransformQuantity
- Defined in:
- lib/stripe/services/price_service.rb
Instance Attribute Summary collapse
-
#divide_by ⇒ Object
Divide usage by this number.
-
#round ⇒ Object
After division, either round the result ‘up` or `down`.
Instance Method Summary collapse
-
#initialize(divide_by: nil, round: nil) ⇒ TransformQuantity
constructor
A new instance of TransformQuantity.
Methods inherited from RequestParams
Constructor Details
#initialize(divide_by: nil, round: nil) ⇒ TransformQuantity
Returns a new instance of TransformQuantity.
280 281 282 283 |
# File 'lib/stripe/services/price_service.rb', line 280 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.
276 277 278 |
# File 'lib/stripe/services/price_service.rb', line 276 def divide_by @divide_by end |
#round ⇒ Object
After division, either round the result ‘up` or `down`.
278 279 280 |
# File 'lib/stripe/services/price_service.rb', line 278 def round @round end |