Class: Telnyx::Models::PhoneNumbers::ActionVerifyOwnershipResponse::Data::Found

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/phone_numbers/action_verify_ownership_response.rb,
sig/telnyx/models/phone_numbers/action_verify_ownership_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(id: nil, number_val_e164: nil) ⇒ Found

Returns a new instance of Found.

Parameters:

  • id (String) (defaults to: nil)

    Identifies the resource.

  • number_val_e164 (String) (defaults to: nil)

    The phone number in E.164 format

  • id: (String) (defaults to: nil)
  • number_val_e164: (String) (defaults to: nil)


46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/telnyx/models/phone_numbers/action_verify_ownership_response.rb', line 46

class Found < Telnyx::Internal::Type::BaseModel
  # @!attribute number_val_e164
  #   The phone number in E.164 format
  #
  #   @return [String, nil]
  optional :number_val_e164, String

  response_only do
    # @!attribute id
    #   Identifies the resource.
    #
    #   @return [String, nil]
    optional :id, String
  end

  # @!method initialize(id: nil, number_val_e164: nil)
  #   @param id [String] Identifies the resource.
  #
  #   @param number_val_e164 [String] The phone number in E.164 format
end

Instance Attribute Details

#idString? (readonly)

Returns the value of attribute id.

Returns:

  • (String, nil)


65
66
67
# File 'sig/telnyx/models/phone_numbers/action_verify_ownership_response.rbs', line 65

def id
  @id
end

#number_val_e164String?

The phone number in E.164 format

Parameters:

  • (String)

Returns:

  • (String, nil)


51
# File 'lib/telnyx/models/phone_numbers/action_verify_ownership_response.rb', line 51

optional :number_val_e164, String

Instance Method Details

#id=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


67
# File 'sig/telnyx/models/phone_numbers/action_verify_ownership_response.rbs', line 67

def id=: (String) -> String

#to_hash{ id: String, :number_val_e164 => String }

Returns:

  • ({ id: String, :number_val_e164 => String })


71
# File 'sig/telnyx/models/phone_numbers/action_verify_ownership_response.rbs', line 71

def to_hash: -> { id: String, :number_val_e164 => String }