Class: Stripe::PriceService::CreateParams::TransformQuantity

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



276
277
278
279
# File 'lib/stripe/services/price_service.rb', line 276

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

Instance Attribute Details

#divide_byObject

Divide usage by this number.



272
273
274
# File 'lib/stripe/services/price_service.rb', line 272

def divide_by
  @divide_by
end

#roundObject

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



274
275
276
# File 'lib/stripe/services/price_service.rb', line 274

def round
  @round
end