Class: Stripe::V2::Billing::RateCards::RateCreateParams::TransformQuantity

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, new, #to_h

Constructor Details

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

Returns a new instance of TransformQuantity.



47
48
49
50
# File 'lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb', line 47

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

Instance Attribute Details

#divide_byObject

Divide usage by this number.



43
44
45
# File 'lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb', line 43

def divide_by
  @divide_by
end

#roundObject

After division, round the result up or down.



45
46
47
# File 'lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb', line 45

def round
  @round
end