Class: Stripe::V2::Billing::LicenseFeeService::CreateParams::TransformQuantity

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



58
59
60
61
# File 'lib/stripe/services/v2/billing/license_fee_service.rb', line 58

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

Instance Attribute Details

#divide_byObject

Divide usage by this number.



54
55
56
# File 'lib/stripe/services/v2/billing/license_fee_service.rb', line 54

def divide_by
  @divide_by
end

#roundObject

After division, round the result up or down.



56
57
58
# File 'lib/stripe/services/v2/billing/license_fee_service.rb', line 56

def round
  @round
end