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

#to_h

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_byObject

Divide usage by this number.



72
73
74
# File 'lib/stripe/params/plan_create_params.rb', line 72

def divide_by
  @divide_by
end

#roundObject

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