Class: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb,
sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs

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(grouping_key:, minimum_unit_amount:, pricing_key:, scaling_factors:, scaling_key:, unit_amounts:) ⇒ Object

Some parameter documentations has been truncated, see Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig for more details.

Configuration for grouped_with_metered_minimum pricing

Parameters:



240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
# File 'lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb', line 240

class ScalingFactor < Orb::Internal::Type::BaseModel
  # @!attribute scaling_factor
  #
  #   @return [String]
  required :scaling_factor, String

  # @!attribute scaling_value
  #
  #   @return [String]
  required :scaling_value, String

  # @!method initialize(scaling_factor:, scaling_value:)
  #   Configuration for a scaling factor
  #
  #   @param scaling_factor [String]
  #   @param scaling_value [String]
end

Instance Attribute Details

#scaling_factorString

Parameters:

  • value (String)

Returns:

  • (String)


244
# File 'lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb', line 244

required :scaling_factor, String

#scaling_valueString

Parameters:

  • value (String)

Returns:

  • (String)


249
# File 'lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb', line 249

required :scaling_value, String

Instance Method Details

#to_hash{ scaling_factor: String, scaling_value: String }

Returns:

  • ({ scaling_factor: String, scaling_value: String })


173
# File 'sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs', line 173

def to_hash: -> { scaling_factor: String, scaling_value: String }