Class: Stigg::Models::V1::Plan::Data::DefaultTrialConfig::Budget

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/stigg/models/v1/plan.rb,
sig/stigg/models/v1/plan.rbs

Overview

See Also:

  • Stigg::Models::V1::Plan::Data::DefaultTrialConfig#budget

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

#initializeBudget

Returns a new instance of Budget.

Parameters:

  • has_soft_limit: (Boolean)
  • limit: (Float)


153
# File 'sig/stigg/models/v1/plan.rbs', line 153

def initialize: (has_soft_limit: bool, limit: Float) -> void

Instance Attribute Details

#has_soft_limitBoolean

Whether the budget limit is a soft limit (allows overage) or hard limit

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


219
# File 'lib/stigg/models/v1/plan.rb', line 219

required :has_soft_limit, Stigg::Internal::Type::Boolean, api_name: :hasSoftLimit

#limitFloat

The budget limit amount

Parameters:

  • value (Float)

Returns:

  • (Float)


225
# File 'lib/stigg/models/v1/plan.rb', line 225

required :limit, Float

Instance Method Details

#to_hash{ has_soft_limit: bool, limit: Float }

Returns:

  • ({ has_soft_limit: bool, limit: Float })


155
# File 'sig/stigg/models/v1/plan.rbs', line 155

def to_hash: -> { has_soft_limit: bool, limit: Float }