Class: Stripe::Plan::CreateParams::TransformUsage
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Plan::CreateParams::TransformUsage
- Defined in:
- lib/stripe/resources/plan.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) ⇒ TransformUsage
constructor
A new instance of TransformUsage.
Methods inherited from RequestParams
Constructor Details
#initialize(divide_by: nil, round: nil) ⇒ TransformUsage
Returns a new instance of TransformUsage.
216 217 218 219 |
# File 'lib/stripe/resources/plan.rb', line 216 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.
212 213 214 |
# File 'lib/stripe/resources/plan.rb', line 212 def divide_by @divide_by end |
#round ⇒ Object
After division, either round the result ‘up` or `down`.
214 215 216 |
# File 'lib/stripe/resources/plan.rb', line 214 def round @round end |