Class: Orb::Models::MatrixConfig

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/orb/models/matrix_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(default_unit_amount: , dimensions: , matrix_values: ) ⇒ Object

Parameters:

  • default_unit_amount (String) (defaults to: )

    Default per unit rate for any usage not bucketed into a specified matrix_value

  • dimensions (Array<String, nil>) (defaults to: )

    One or two event property values to evaluate matrix groups by

  • matrix_values (Array<Orb::Models::MatrixValue>) (defaults to: )

    Matrix values for specified matrix grouping keys



# File 'lib/orb/models/matrix_config.rb', line 24


Instance Attribute Details

#default_unit_amountString

Default per unit rate for any usage not bucketed into a specified matrix_value

Returns:

  • (String)


10
# File 'lib/orb/models/matrix_config.rb', line 10

required :default_unit_amount, String

#dimensionsArray<String, nil>

One or two event property values to evaluate matrix groups by

Returns:

  • (Array<String, nil>)


16
# File 'lib/orb/models/matrix_config.rb', line 16

required :dimensions, Orb::Internal::Type::ArrayOf[String, nil?: true]

#matrix_valuesArray<Orb::Models::MatrixValue>

Matrix values for specified matrix grouping keys

Returns:



22
# File 'lib/orb/models/matrix_config.rb', line 22

required :matrix_values, -> { Orb::Internal::Type::ArrayOf[Orb::MatrixValue] }