Class: Stripe::Price::CreateParams::TransformQuantity

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/price.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

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

Returns a new instance of TransformQuantity.



368
369
370
371
# File 'lib/stripe/resources/price.rb', line 368

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

Instance Attribute Details

#divide_byObject

Divide usage by this number.



364
365
366
# File 'lib/stripe/resources/price.rb', line 364

def divide_by
  @divide_by
end

#roundObject

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



366
367
368
# File 'lib/stripe/resources/price.rb', line 366

def round
  @round
end