Class: Telnyx::Models::SimCardStatus

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

Defined Under Namespace

Modules: Value

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(reason: nil, value: nil) ⇒ Object

Some parameter documentations has been truncated, see Telnyx::Models::SimCardStatus for more details.

Parameters:

  • reason (String) (defaults to: nil)

    It describes why the SIM card is in the current status.

  • value (Symbol, Telnyx::Models::SimCardStatus::Value) (defaults to: nil)

    The current status of the SIM card. It will be one of the following:



# File 'lib/telnyx/models/sim_card_status.rb', line 32

Instance Attribute Details

#reasonString? (readonly)

Returns the value of attribute reason.

Returns:

  • (String, nil)


7
8
9
# File 'sig/telnyx/models/sim_card_status.rbs', line 7

def reason
  @reason
end

#valueTelnyx::Models::SimCardStatus::value? (readonly)

Returns the value of attribute value.

Returns:

  • (Telnyx::Models::SimCardStatus::value, nil)


11
12
13
# File 'sig/telnyx/models/sim_card_status.rbs', line 11

def value
  @value
end

Instance Method Details

#reason=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


9
# File 'sig/telnyx/models/sim_card_status.rbs', line 9

def reason=: (String) -> String

#to_hash{

Returns:

  • ({)


22
# File 'sig/telnyx/models/sim_card_status.rbs', line 22

def to_hash: -> {

#value=Object (readonly)



13
# File 'sig/telnyx/models/sim_card_status.rbs', line 13

def value=: (