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