Class: Stripe::PriceCreateParams::TransformQuantity

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/price_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) ⇒ TransformQuantity

Returns a new instance of TransformQuantity.



192
193
194
195
# File 'lib/stripe/params/price_create_params.rb', line 192

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

Instance Attribute Details

#divide_byObject

Divide usage by this number.



188
189
190
# File 'lib/stripe/params/price_create_params.rb', line 188

def divide_by
  @divide_by
end

#roundObject

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



190
191
192
# File 'lib/stripe/params/price_create_params.rb', line 190

def round
  @round
end