Class: Stripe::V2::Billing::LicenseFeeUpdateParams::TransformQuantity

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/v2/billing/license_fee_update_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.



34
35
36
37
# File 'lib/stripe/params/v2/billing/license_fee_update_params.rb', line 34

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

Instance Attribute Details

#divide_byObject

Divide usage by this number.



30
31
32
# File 'lib/stripe/params/v2/billing/license_fee_update_params.rb', line 30

def divide_by
  @divide_by
end

#roundObject

After division, round the result up or down.



32
33
34
# File 'lib/stripe/params/v2/billing/license_fee_update_params.rb', line 32

def round
  @round
end