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.
240 241 242 243 |
# File 'lib/stripe/resources/plan.rb', line 240 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.
235 236 237 |
# File 'lib/stripe/resources/plan.rb', line 235 def divide_by @divide_by end |
#round ⇒ Object
After division, either round the result ‘up` or `down`.
238 239 240 |
# File 'lib/stripe/resources/plan.rb', line 238 def round @round end |