Class: Telnyx::Models::Enterprises::Reputation::NumberRefreshResponse::Data::Result
- Inherits:
-
Internal::Type::BaseModel
show all
- Defined in:
- lib/telnyx/models/enterprises/reputation/number_refresh_response.rb,
sig/telnyx/models/enterprises/reputation/number_refresh_response.rbs
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(phone_number:, success:, error: nil) ⇒ Object
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/telnyx/models/enterprises/reputation/number_refresh_response.rb', line 50
class Result < Telnyx::Internal::Type::BaseModel
required :phone_number, String
required :success, Telnyx::Internal::Type::Boolean
optional :error, String, nil?: true
end
|
Instance Attribute Details
#error ⇒ String?
null when success is true; carries an error message otherwise.
65
|
# File 'lib/telnyx/models/enterprises/reputation/number_refresh_response.rb', line 65
optional :error, String, nil?: true
|
#phone_number ⇒ String
54
|
# File 'lib/telnyx/models/enterprises/reputation/number_refresh_response.rb', line 54
required :phone_number, String
|
#success ⇒ Boolean
59
|
# File 'lib/telnyx/models/enterprises/reputation/number_refresh_response.rb', line 59
required :success, Telnyx::Internal::Type::Boolean
|
Instance Method Details
#to_hash ⇒ {
68
|
# File 'sig/telnyx/models/enterprises/reputation/number_refresh_response.rbs', line 68
def to_hash: -> {
|