Class: Stripe::V2::Billing::RateCards::RateCreateParams::TransformQuantity
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Billing::RateCards::RateCreateParams::TransformQuantity
- Defined in:
- lib/stripe/params/v2/billing/rate_cards/rate_create_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.
51 52 53 54 |
# File 'lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb', line 51 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.
47 48 49 |
# File 'lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb', line 47 def divide_by @divide_by end |
#round ⇒ Object
After division, round the result up or down.
49 50 51 |
# File 'lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb', line 49 def round @round end |
Class Method Details
.field_encodings ⇒ Object
56 57 58 |
# File 'lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb', line 56 def self.field_encodings @field_encodings = { divide_by: :int64_string } end |