Class: Stripe::PlanCreateParams::TransformUsage
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PlanCreateParams::TransformUsage
- Defined in:
- lib/stripe/params/plan_create_params.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.
76 77 78 79 |
# File 'lib/stripe/params/plan_create_params.rb', line 76 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.
72 73 74 |
# File 'lib/stripe/params/plan_create_params.rb', line 72 def divide_by @divide_by end |
#round ⇒ Object
After division, either round the result ‘up` or `down`.
74 75 76 |
# File 'lib/stripe/params/plan_create_params.rb', line 74 def round @round end |