Class: SafetyKit::Models::DataGetStatusResponse::Data::Output

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/safety_kit/models/data_get_status_response.rb,
sig/safety_kit/models/data_get_status_response.rbs

Overview

See Also:

  • SafetyKit::Models::DataGetStatusResponse::Data#output

Defined Under Namespace

Classes: Label

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

#initializeObject



86
# File 'sig/safety_kit/models/data_get_status_response.rbs', line 86

def initialize: (

Instance Attribute Details

#actionsArray<Object, nil>

Parameters:

  • value (::Array[top?])

Returns:

  • (Array<Object, nil>)


92
93
# File 'lib/safety_kit/models/data_get_status_response.rb', line 92

required :actions,
SafetyKit::Internal::Type::ArrayOf[SafetyKit::Internal::Type::Unknown, nil?: true]

#fieldsHash{Symbol=>Object, nil}

Parameters:

  • value (::Hash[Symbol, top?])

Returns:

  • (Hash{Symbol=>Object, nil})


98
# File 'lib/safety_kit/models/data_get_status_response.rb', line 98

required :fields, SafetyKit::Internal::Type::HashOf[SafetyKit::Internal::Type::Unknown, nil?: true]

#labelsArray<SafetyKit::Models::DataGetStatusResponse::Data::Output::Label>



103
104
# File 'lib/safety_kit/models/data_get_status_response.rb', line 103

required :labels,
-> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Models::DataGetStatusResponse::Data::Output::Label] }

Instance Method Details

#to_hash{

Returns:

  • ({)


92
# File 'sig/safety_kit/models/data_get_status_response.rbs', line 92

def to_hash: -> {