Class: Stripe::V2::Billing::RateCardModifyRatesParams::RatesToCreate::TransformQuantity
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Billing::RateCardModifyRatesParams::RatesToCreate::TransformQuantity
- Defined in:
- lib/stripe/params/v2/billing/rate_card_modify_rates_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.
83 84 85 86 |
# File 'lib/stripe/params/v2/billing/rate_card_modify_rates_params.rb', line 83 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.
79 80 81 |
# File 'lib/stripe/params/v2/billing/rate_card_modify_rates_params.rb', line 79 def divide_by @divide_by end |
#round ⇒ Object
After division, round the result up or down.
81 82 83 |
# File 'lib/stripe/params/v2/billing/rate_card_modify_rates_params.rb', line 81 def round @round end |
Class Method Details
.field_encodings ⇒ Object
88 89 90 |
# File 'lib/stripe/params/v2/billing/rate_card_modify_rates_params.rb', line 88 def self.field_encodings @field_encodings = { divide_by: :int64_string } end |