Class: Twilio::REST::Numbers::V1
- Inherits:
-
Version
- Object
- Version
- Twilio::REST::Numbers::V1
show all
- Defined in:
- lib/twilio-ruby/rest/numbers/v1.rb,
lib/twilio-ruby/rest/numbers/v1/webhook.rb,
lib/twilio-ruby/rest/numbers/v1/eligibility.rb,
lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb,
lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb,
lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb,
lib/twilio-ruby/rest/numbers/v1/porting_portability.rb,
lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb,
lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb,
lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb,
lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb
Defined Under Namespace
Classes: BulkEligibilityContext, BulkEligibilityInstance, BulkEligibilityList, BulkEligibilityPage, EligibilityInstance, EligibilityList, EligibilityPage, PortingAllPortInInstance, PortingAllPortInList, PortingAllPortInPage, PortingPortInContext, PortingPortInInstance, PortingPortInList, PortingPortInPage, PortingPortInPhoneNumberContext, PortingPortInPhoneNumberInstance, PortingPortInPhoneNumberList, PortingPortInPhoneNumberPage, PortingPortabilityContext, PortingPortabilityInstance, PortingPortabilityList, PortingPortabilityPage, PortingWebhookConfigurationDeleteContext, PortingWebhookConfigurationDeleteInstance, PortingWebhookConfigurationDeleteList, PortingWebhookConfigurationDeletePage, PortingWebhookConfigurationInstance, PortingWebhookConfigurationList, PortingWebhookConfigurationPage, SigningRequestConfigurationInstance, SigningRequestConfigurationList, SigningRequestConfigurationPage, WebhookInstance, WebhookList, WebhookPage
Instance Attribute Summary
Attributes inherited from Version
#domain
Instance Method Summary
collapse
Methods inherited from Version
#absolute_url, #create, #delete, #exception, #fetch, #page, #read_limits, #relative_uri, #request, #stream, #update
Constructor Details
#initialize(domain) ⇒ V1
Initialize the V1 version of Numbers
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/twilio-ruby/rest/numbers/v1.rb', line 21
def initialize(domain)
super
@version = 'v1'
@bulk_eligibilities = nil
@eligibilities = nil
@porting_all_port_ins = nil
@porting_port_ins = nil
@porting_port_in_phone_number = nil
@porting_portabilities = nil
@porting_webhook_configurations = nil
@porting_webhook_configurations_delete = nil
@signing_request_configurations = nil
@webhook = nil
end
|
Instance Method Details
40
41
42
43
44
45
46
47
48
49
|
# File 'lib/twilio-ruby/rest/numbers/v1.rb', line 40
def bulk_eligibilities(request_id=:unset)
if request_id.nil?
raise ArgumentError, 'request_id cannot be nil'
end
if request_id == :unset
@bulk_eligibilities ||= BulkEligibilityList.new self
else
BulkEligibilityContext.new(self, request_id)
end
end
|
52
53
54
|
# File 'lib/twilio-ruby/rest/numbers/v1.rb', line 52
def eligibilities
@eligibilities ||= EligibilityList.new self
end
|
57
58
59
|
# File 'lib/twilio-ruby/rest/numbers/v1.rb', line 57
def porting_all_port_ins
@porting_all_port_ins ||= PortingAllPortInList.new self
end
|
79
80
81
82
83
84
85
86
87
88
89
90
91
|
# File 'lib/twilio-ruby/rest/numbers/v1.rb', line 79
def porting_port_in_phone_number(port_in_request_sid=:unset, phone_number_sid=:unset)
if port_in_request_sid.nil?
raise ArgumentError, 'port_in_request_sid cannot be nil'
end
if phone_number_sid.nil?
raise ArgumentError, 'phone_number_sid cannot be nil'
end
if port_in_request_sid == :unset && phone_number_sid == :unset
@porting_port_in_phone_number ||= PortingPortInPhoneNumberList.new self
else
PortingPortInPhoneNumberContext.new(self, port_in_request_sid, phone_number_sid)
end
end
|
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/twilio-ruby/rest/numbers/v1.rb', line 64
def porting_port_ins(port_in_request_sid=:unset)
if port_in_request_sid.nil?
raise ArgumentError, 'port_in_request_sid cannot be nil'
end
if port_in_request_sid == :unset
@porting_port_ins ||= PortingPortInList.new self
else
PortingPortInContext.new(self, port_in_request_sid)
end
end
|
114
115
116
117
118
119
120
121
122
123
|
# File 'lib/twilio-ruby/rest/numbers/v1.rb', line 114
def porting_portabilities(phone_number=:unset)
if phone_number.nil?
raise ArgumentError, 'phone_number cannot be nil'
end
if phone_number == :unset
@porting_portabilities ||= PortingPortabilityList.new self
else
PortingPortabilityContext.new(self, phone_number)
end
end
|
126
127
128
|
# File 'lib/twilio-ruby/rest/numbers/v1.rb', line 126
def porting_webhook_configurations
@porting_webhook_configurations ||= PortingWebhookConfigurationList.new self
end
|
133
134
135
136
137
138
139
140
141
142
|
# File 'lib/twilio-ruby/rest/numbers/v1.rb', line 133
def porting_webhook_configurations_delete(webhook_type=:unset)
if webhook_type.nil?
raise ArgumentError, 'webhook_type cannot be nil'
end
if webhook_type == :unset
@porting_webhook_configurations_delete ||= PortingWebhookConfigurationDeleteList.new self
else
PortingWebhookConfigurationDeleteContext.new(self, webhook_type)
end
end
|
145
146
147
|
# File 'lib/twilio-ruby/rest/numbers/v1.rb', line 145
def signing_request_configurations
@signing_request_configurations ||= SigningRequestConfigurationList.new self
end
|
#to_s ⇒ Object
Provide a user friendly representation
155
156
157
|
# File 'lib/twilio-ruby/rest/numbers/v1.rb', line 155
def to_s
'<Twilio::REST::Numbers::V1>';
end
|
150
151
152
|
# File 'lib/twilio-ruby/rest/numbers/v1.rb', line 150
def webhook
@webhook ||= WebhookList.new self
end
|