Class: Stripe::PlanCreateParams::TransformUsage

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/plan_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

#initialize(divide_by: nil, round: nil) ⇒ TransformUsage

Returns a new instance of TransformUsage.



98
99
100
101
# File 'lib/stripe/params/plan_create_params.rb', line 98

def initialize(divide_by: nil, round: nil)
  @divide_by = divide_by
  @round = round
end

Instance Attribute Details

#divide_byObject

Divide usage by this number.



94
95
96
# File 'lib/stripe/params/plan_create_params.rb', line 94

def divide_by
  @divide_by
end

#roundObject

After division, either round the result ‘up` or `down`.



96
97
98
# File 'lib/stripe/params/plan_create_params.rb', line 96

def round
  @round
end