Class: Twilio::REST::Numbers::V1::PortingWebhookConfigurationFetchInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Numbers::V1::PortingWebhookConfigurationFetchInstance
- Defined in:
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb
Instance Method Summary collapse
-
#initialize(version, payload) ⇒ PortingWebhookConfigurationFetchInstance
constructor
Initialize the PortingWebhookConfigurationFetchInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#notifications_of ⇒ Array<String>
List of notification events to send a request to the webhook URL.
-
#port_in_target_date_created ⇒ Time
Creation date for the port in webhook configuration.
-
#port_in_target_url ⇒ String
Webhook URL to send a request when a port in request or port in phone number event happens.
-
#port_out_target_date_created ⇒ Time
Creation date for the port out webhook configuration.
-
#port_out_target_url ⇒ String
Webhook URL to send a request when a port out phone number event happens.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#url ⇒ String
The URL of the webhook configuration request.
Constructor Details
#initialize(version, payload) ⇒ PortingWebhookConfigurationFetchInstance
Initialize the PortingWebhookConfigurationFetchInstance
93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb', line 93 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'], 'port_in_target_date_created' => Twilio.deserialize_iso8601_datetime(payload['port_in_target_date_created']), 'port_out_target_date_created' => Twilio.deserialize_iso8601_datetime(payload['port_out_target_date_created']), } end |
Instance Method Details
#inspect ⇒ Object
Provide a detailed, user friendly representation
152 153 154 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb', line 152 def inspect "<Twilio.Numbers.V1.PortingWebhookConfigurationFetchInstance>" end |
#notifications_of ⇒ Array<String>
128 129 130 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb', line 128 def notifications_of @properties['notifications_of'] end |
#port_in_target_date_created ⇒ Time
134 135 136 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb', line 134 def port_in_target_date_created @properties['port_in_target_date_created'] end |
#port_in_target_url ⇒ String
116 117 118 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb', line 116 def port_in_target_url @properties['port_in_target_url'] end |
#port_out_target_date_created ⇒ Time
140 141 142 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb', line 140 def port_out_target_date_created @properties['port_out_target_date_created'] end |
#port_out_target_url ⇒ String
122 123 124 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb', line 122 def port_out_target_url @properties['port_out_target_url'] end |
#to_s ⇒ Object
Provide a user friendly representation
146 147 148 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb', line 146 def to_s "<Twilio.Numbers.V1.PortingWebhookConfigurationFetchInstance>" end |
#url ⇒ String
110 111 112 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb', line 110 def url @properties['url'] end |