Class: Orb::Models::MatrixWithAllocationConfig
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::MatrixWithAllocationConfig
- Defined in:
- lib/orb/models/matrix_with_allocation_config.rb
Instance Attribute Summary collapse
-
#allocation ⇒ Float
Allocation to be used to calculate the price.
-
#default_unit_amount ⇒ String
Default per unit rate for any usage not bucketed into a specified matrix_value.
-
#dimensions ⇒ Array<String, nil>
One or two event property values to evaluate matrix groups by.
-
#matrix_values ⇒ Array<Orb::Models::MatrixValue>
Matrix values for specified matrix grouping keys.
Instance Method Summary collapse
- #initialize(allocation: , default_unit_amount: , dimensions: , matrix_values: ) ⇒ Object constructor
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(allocation: , default_unit_amount: , dimensions: , matrix_values: ) ⇒ Object
|
|
# File 'lib/orb/models/matrix_with_allocation_config.rb', line 30
|
Instance Attribute Details
#allocation ⇒ Float
Allocation to be used to calculate the price
10 |
# File 'lib/orb/models/matrix_with_allocation_config.rb', line 10 required :allocation, Float |
#default_unit_amount ⇒ String
Default per unit rate for any usage not bucketed into a specified matrix_value
16 |
# File 'lib/orb/models/matrix_with_allocation_config.rb', line 16 required :default_unit_amount, String |
#dimensions ⇒ Array<String, nil>
One or two event property values to evaluate matrix groups by
22 |
# File 'lib/orb/models/matrix_with_allocation_config.rb', line 22 required :dimensions, Orb::Internal::Type::ArrayOf[String, nil?: true] |
#matrix_values ⇒ Array<Orb::Models::MatrixValue>
Matrix values for specified matrix grouping keys
28 |
# File 'lib/orb/models/matrix_with_allocation_config.rb', line 28 required :matrix_values, -> { Orb::Internal::Type::ArrayOf[Orb::MatrixValue] } |