Class: Stripe::V2::Billing::LicenseFeeUpdateParams::TransformQuantity
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Billing::LicenseFeeUpdateParams::TransformQuantity
- Defined in:
- lib/stripe/params/v2/billing/license_fee_update_params.rb
Instance Attribute Summary collapse
-
#divide_by ⇒ Object
Divide usage by this number.
-
#round ⇒ Object
After division, round the result up or down.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(divide_by: nil, round: nil) ⇒ TransformQuantity
constructor
A new instance of TransformQuantity.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, new, #to_h
Constructor Details
#initialize(divide_by: nil, round: nil) ⇒ TransformQuantity
Returns a new instance of TransformQuantity.
38 39 40 41 |
# File 'lib/stripe/params/v2/billing/license_fee_update_params.rb', line 38 def initialize(divide_by: nil, round: nil) @divide_by = divide_by @round = round end |
Instance Attribute Details
#divide_by ⇒ Object
Divide usage by this number.
34 35 36 |
# File 'lib/stripe/params/v2/billing/license_fee_update_params.rb', line 34 def divide_by @divide_by end |
#round ⇒ Object
After division, round the result up or down.
36 37 38 |
# File 'lib/stripe/params/v2/billing/license_fee_update_params.rb', line 36 def round @round end |
Class Method Details
.field_encodings ⇒ Object
43 44 45 |
# File 'lib/stripe/params/v2/billing/license_fee_update_params.rb', line 43 def self.field_encodings @field_encodings = { divide_by: :int64_string } end |