Class: Orb::Models::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig::ScalingFactor

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/orb/models/price.rb,
sig/orb/models/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::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig for more details.

Configuration for grouped_with_metered_minimum pricing

Parameters:



9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
# File 'lib/orb/models/price.rb', line 9318

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_factor ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


9322
# File 'lib/orb/models/price.rb', line 9322

required :scaling_factor, String

#scaling_value ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


9327
# File 'lib/orb/models/price.rb', line 9327

required :scaling_value, String

Instance Method Details

#to_hash ⇒ { scaling_factor: String, scaling_value: String }

Returns:

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


6964
# File 'sig/orb/models/price.rbs', line 6964

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