Class: Orb::Models::NewFloatingThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/orb/models/new_floating_threshold_total_amount_price.rb,
sig/orb/models/new_floating_threshold_total_amount_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(threshold:, total_amount:) ⇒ ConsumptionTable

Configuration for a single threshold

Parameters:

  • threshold (String)
  • total_amount (String)

    Total amount for this threshold

  • threshold: (String)
  • total_amount: (String)


218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
# File 'lib/orb/models/new_floating_threshold_total_amount_price.rb', line 218

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

  # @!attribute total_amount
  #   Total amount for this threshold
  #
  #   @return [String]
  required :total_amount, String

  # @!method initialize(threshold:, total_amount:)
  #   Configuration for a single threshold
  #
  #   @param threshold [String]
  #
  #   @param total_amount [String] Total amount for this threshold
end

Instance Attribute Details

#thresholdString

Parameters:

  • value (String)

Returns:

  • (String)


222
# File 'lib/orb/models/new_floating_threshold_total_amount_price.rb', line 222

required :threshold, String

#total_amountString

Total amount for this threshold

Parameters:

  • value (String)

Returns:

  • (String)


228
# File 'lib/orb/models/new_floating_threshold_total_amount_price.rb', line 228

required :total_amount, String

Instance Method Details

#to_hash{ threshold: String, total_amount: String }

Returns:

  • ({ threshold: String, total_amount: String })


160
# File 'sig/orb/models/new_floating_threshold_total_amount_price.rbs', line 160

def to_hash: -> { threshold: String, total_amount: String }