Class: Straddle::Models::RepresentativeStatusDetail

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

Defined Under Namespace

Modules: Reason, Source

Instance Attribute Summary collapse

Class Method 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(code:, message:, reason:, source:) ⇒ Object

Parameters:



# File 'lib/straddle/models/representative_status_detail.rb', line 30

Instance Attribute Details

#code ⇒ String

Machine-readable status code from the source.

Parameters:

  • value (String)

Returns:

  • (String)


10
# File 'lib/straddle/models/representative_status_detail.rb', line 10

required :code, String

#message ⇒ String

Human-readable description of the representative's status.

Parameters:

  • value (String)

Returns:

  • (String)


16
# File 'lib/straddle/models/representative_status_detail.rb', line 16

required :message, String

#reason ⇒ Symbol, Straddle::Models::RepresentativeStatusDetail::Reason

Machine-readable reason for the representative's status.

Parameters:

  • value (Straddle::Models::RepresentativeStatusDetail::reason)

Returns:



22
# File 'lib/straddle/models/representative_status_detail.rb', line 22

required :reason, enum: -> { Straddle::RepresentativeStatusDetail::Reason }

#source ⇒ Symbol, Straddle::Models::RepresentativeStatusDetail::Source

System that produced the representative status detail.

Parameters:

  • value (Straddle::Models::RepresentativeStatusDetail::source)

Returns:



28
# File 'lib/straddle/models/representative_status_detail.rb', line 28

required :source, enum: -> { Straddle::RepresentativeStatusDetail::Source }

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/straddle/models/representative_status_detail.rb', line 54

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


27
# File 'sig/straddle/models/representative_status_detail.rbs', line 27

def to_hash: -> {