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.
200 201 202 203 |
# File 'lib/stripe/resources/plan.rb', line 200 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.
196 197 198 |
# File 'lib/stripe/resources/plan.rb', line 196 def divide_by @divide_by end |
#round ⇒ Object
After division, either round the result ‘up` or `down`.
198 199 200 |
# File 'lib/stripe/resources/plan.rb', line 198 def round @round end |