Class: Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data
- Inherits:
-
Internal::Type::BaseModel
show all
- Defined in:
- lib/telnyx/models/available_phone_number_block_list_response.rb,
sig/telnyx/models/available_phone_number_block_list_response.rbs
Defined Under Namespace
Modules: RecordType
Constant Summary
collapse
- Telnyx =
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(cost_information: nil, features: nil, phone_number: nil, range: nil, record_type: nil, region_information: nil) ⇒ Object
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# File 'lib/telnyx/models/available_phone_number_block_list_response.rb', line 22
class Data < Telnyx::Internal::Type::BaseModel
optional :cost_information, -> { Telnyx::CostInformation }
optional :features, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Feature] }
optional :phone_number, String
optional :range, Integer
optional :record_type,
enum: -> { Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::RecordType }
optional :region_information, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::RegionInformation] }
module RecordType
extend Telnyx::Internal::Type::Enum
AVAILABLE_PHONE_NUMBER_BLOCK = :available_phone_number_block
end
end
|
Instance Attribute Details
26
|
# File 'lib/telnyx/models/available_phone_number_block_list_response.rb', line 26
optional :cost_information, -> { Telnyx::CostInformation }
|
31
|
# File 'lib/telnyx/models/available_phone_number_block_list_response.rb', line 31
optional :features, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Feature] }
|
#phone_number ⇒ String?
36
|
# File 'lib/telnyx/models/available_phone_number_block_list_response.rb', line 36
optional :phone_number, String
|
#range ⇒ Integer?
41
|
# File 'lib/telnyx/models/available_phone_number_block_list_response.rb', line 41
optional :range, Integer
|
#record_type ⇒ Symbol, ...
46
47
|
# File 'lib/telnyx/models/available_phone_number_block_list_response.rb', line 46
optional :record_type,
enum: -> { Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::RecordType }
|
52
|
# File 'lib/telnyx/models/available_phone_number_block_list_response.rb', line 52
optional :region_information, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::RegionInformation] }
|
Instance Method Details
#to_hash ⇒ {
82
|
# File 'sig/telnyx/models/available_phone_number_block_list_response.rbs', line 82
def to_hash: -> {
|