Module: Orb::Models::EvaluatePriceGroup::GroupingValue

Extended by:
Internal::Type::Union
Defined in:
lib/orb/models/evaluate_price_group.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Class Method Details

.variantsArray(String, Float, Boolean)

Returns:

  • (Array(String, Float, Boolean))


# File 'lib/orb/models/evaluate_price_group.rb', line 41

Instance Method Details

#initialize(amount: , grouping_values: , quantity: ) ⇒ Object

Parameters:

  • amount (String) (defaults to: )

    The price’s output for the group

  • grouping_values (Array<String, Float, Boolean>) (defaults to: )

    The values for the group in the order specified by ‘grouping_keys`

  • quantity (Float) (defaults to: )

    The price’s usage quantity for the group



32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/orb/models/evaluate_price_group.rb', line 32

module GroupingValue
  extend Orb::Internal::Type::Union

  variant String

  variant Float

  variant Orb::Internal::Type::Boolean

  # @!method self.variants
  #   @return [Array(String, Float, Boolean)]
end