Class: Stripe::PlanService::CreateParams::TransformUsage

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/plan_service.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.



172
173
174
175
# File 'lib/stripe/services/plan_service.rb', line 172

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

Instance Attribute Details

#divide_byObject

Divide usage by this number.



168
169
170
# File 'lib/stripe/services/plan_service.rb', line 168

def divide_by
  @divide_by
end

#roundObject

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



170
171
172
# File 'lib/stripe/services/plan_service.rb', line 170

def round
  @round
end