Class: Twilio::REST::Numbers::V1::PortingWebhookConfigurationInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Numbers::V1::PortingWebhookConfigurationInstance
- Defined in:
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb
Instance Method Summary collapse
-
#initialize(version, payload) ⇒ PortingWebhookConfigurationInstance
constructor
Initialize the PortingWebhookConfigurationInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#notifications_of ⇒ Array<String>
A list to filter what notification events to receive for this account and its sub accounts.
-
#port_in_target_url ⇒ String
The complete webhook url that will be called when a notification event for port in request or port in phone number happens.
-
#port_out_target_url ⇒ String
The complete webhook url that will be called when a notification event for a port out phone number happens.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#url ⇒ String
The URL of the webhook configuration request.
Constructor Details
#initialize(version, payload) ⇒ PortingWebhookConfigurationInstance
Initialize the PortingWebhookConfigurationInstance
188 189 190 191 192 193 194 195 196 197 198 199 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb', line 188 def initialize(version, payload ) super(version) # Marshaled Properties @properties = { 'url' => payload['url'], 'port_in_target_url' => payload['port_in_target_url'], 'port_out_target_url' => payload['port_out_target_url'], 'notifications_of' => payload['notifications_of'], } end |
Instance Method Details
#inspect ⇒ Object
Provide a detailed, user friendly representation
234 235 236 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb', line 234 def inspect "<Twilio.Numbers.V1.PortingWebhookConfigurationInstance>" end |
#notifications_of ⇒ Array<String>
Returns A list to filter what notification events to receive for this account and its sub accounts. If it is an empty list, then it means that there are no filters for the notifications events to send in each webhook and all events will get sent.
222 223 224 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb', line 222 def notifications_of @properties['notifications_of'] end |
#port_in_target_url ⇒ String
Returns The complete webhook url that will be called when a notification event for port in request or port in phone number happens.
210 211 212 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb', line 210 def port_in_target_url @properties['port_in_target_url'] end |
#port_out_target_url ⇒ String
Returns The complete webhook url that will be called when a notification event for a port out phone number happens.
216 217 218 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb', line 216 def port_out_target_url @properties['port_out_target_url'] end |
#to_s ⇒ Object
Provide a user friendly representation
228 229 230 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb', line 228 def to_s "<Twilio.Numbers.V1.PortingWebhookConfigurationInstance>" end |
#url ⇒ String
Returns The URL of the webhook configuration request.
204 205 206 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb', line 204 def url @properties['url'] end |