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

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

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(actions:, fields:, labels:) ⇒ Label

Returns a new instance of Label.

Parameters:



111
112
113
114
115
116
117
118
119
# File 'lib/safety_kit/models/data_get_status_response.rb', line 111

class Label < SafetyKit::Internal::Type::BaseModel
  # @!attribute label
  #
  #   @return [String]
  required :label, String

  # @!method initialize(label:)
  #   @param label [String]
end

Instance Attribute Details

#label ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


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

required :label, String

Instance Method Details

#to_hash ⇒ { label: String }

Returns:

  • ({ label: String })


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

def to_hash: -> { label: String }