Class: Lithic::Models::AuthRules::V2::BacktestResults::SimulationParameters

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/lithic/models/auth_rules/v2/backtest_results.rb,
sig/lithic/models/auth_rules/v2/backtest_results.rbs

Overview

See Also:

  • Lithic::Models::AuthRules::V2::BacktestResults#simulation_parameters

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(end_:, start:) ⇒ SimulationParameters

Returns a new instance of SimulationParameters.

Parameters:

  • end_ (Time)

    The end time of the simulation

  • start (Time)

    The start time of the simulation

  • end_: (Time)
  • start: (Time)


# File 'lib/lithic/models/auth_rules/v2/backtest_results.rb', line 63

Instance Attribute Details

#end_Time

The end time of the simulation

Parameters:

  • value (Time)

Returns:

  • (Time)


55
# File 'lib/lithic/models/auth_rules/v2/backtest_results.rb', line 55

required :end_, Time, api_name: :end

#startTime

The start time of the simulation

Parameters:

  • value (Time)

Returns:

  • (Time)


61
# File 'lib/lithic/models/auth_rules/v2/backtest_results.rb', line 61

required :start, Time

Instance Method Details

#to_hash{ end_: Time, start: Time }

Returns:

  • ({ end_: Time, start: Time })


62
# File 'sig/lithic/models/auth_rules/v2/backtest_results.rbs', line 62

def to_hash: -> { end_: Time, start: Time }