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.



197
198
199
200
# File 'lib/stripe/services/plan_service.rb', line 197

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

Instance Attribute Details

#divide_byObject

Divide usage by this number.



192
193
194
# File 'lib/stripe/services/plan_service.rb', line 192

def divide_by
  @divide_by
end

#roundObject

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



195
196
197
# File 'lib/stripe/services/plan_service.rb', line 195

def round
  @round
end