Class: Telnyx::Models::SimCardGetActivationCodeResponse::Data

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

Overview

See Also:

  • Telnyx::Models::SimCardGetActivationCodeResponse#data

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(activation_code: nil, record_type: nil) ⇒ Data

Returns a new instance of Data.

Parameters:

  • activation_code (String) (defaults to: nil)

    Contents of the eSIM activation QR code.

  • record_type (String) (defaults to: nil)
  • activation_code: (String) (defaults to: nil)
  • record_type: (String) (defaults to: nil)


# File 'lib/telnyx/models/sim_card_get_activation_code_response.rb', line 30

Instance Attribute Details

#activation_codeString? (readonly)

Returns the value of attribute activation_code.

Returns:

  • (String, nil)


24
25
26
# File 'sig/telnyx/models/sim_card_get_activation_code_response.rbs', line 24

def activation_code
  @activation_code
end

#record_typeString? (readonly)

Returns the value of attribute record_type.

Returns:

  • (String, nil)


28
29
30
# File 'sig/telnyx/models/sim_card_get_activation_code_response.rbs', line 28

def record_type
  @record_type
end

Instance Method Details

#activation_code=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


26
# File 'sig/telnyx/models/sim_card_get_activation_code_response.rbs', line 26

def activation_code=: (String) -> String

#record_type=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


30
# File 'sig/telnyx/models/sim_card_get_activation_code_response.rbs', line 30

def record_type=: (String) -> String

#to_hash{ activation_code: String, record_type: String }

Returns:

  • ({ activation_code: String, record_type: String })


34
# File 'sig/telnyx/models/sim_card_get_activation_code_response.rbs', line 34

def to_hash: -> { activation_code: String, record_type: String }