Class: Orb::Models::NewPlanThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::NewPlanThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable
- Defined in:
- lib/orb/models/new_plan_threshold_total_amount_price.rb,
sig/orb/models/new_plan_threshold_total_amount_price.rbs
Instance Attribute Summary collapse
- #threshold ⇒ String
-
#total_amount ⇒ String
Total amount for this threshold.
Instance Method Summary collapse
-
#initialize(threshold:, total_amount:) ⇒ ConsumptionTable
constructor
Configuration for a single threshold.
- #to_hash ⇒ { threshold: String, total_amount: String }
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
228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 |
# File 'lib/orb/models/new_plan_threshold_total_amount_price.rb', line 228 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
#threshold ⇒ String
232 |
# File 'lib/orb/models/new_plan_threshold_total_amount_price.rb', line 232 required :threshold, String |
#total_amount ⇒ String
Total amount for this threshold
238 |
# File 'lib/orb/models/new_plan_threshold_total_amount_price.rb', line 238 required :total_amount, String |
Instance Method Details
#to_hash ⇒ { threshold: String, total_amount: String }
165 |
# File 'sig/orb/models/new_plan_threshold_total_amount_price.rbs', line 165
def to_hash: -> { threshold: String, total_amount: String }
|