Class: Twilio::REST::Numbers::V1::WebhookInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Numbers::V1::WebhookInstance
- Defined in:
- lib/twilio-ruby/rest/numbers/v1/webhook.rb
Instance Method Summary collapse
-
#initialize(version, payload) ⇒ WebhookInstance
constructor
Initialize the WebhookInstance.
-
#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_date_created ⇒ Time
Creation date for the port in webhook configuration.
-
#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_date_created ⇒ Time
Creation date for the port out webhook configuration.
-
#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) ⇒ WebhookInstance
Initialize the WebhookInstance
98 99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/twilio-ruby/rest/numbers/v1/webhook.rb', line 98 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
157 158 159 |
# File 'lib/twilio-ruby/rest/numbers/v1/webhook.rb', line 157 def inspect "<Twilio.Numbers.V1.WebhookInstance>" end |
#notifications_of ⇒ Array<String>
133 134 135 |
# File 'lib/twilio-ruby/rest/numbers/v1/webhook.rb', line 133 def notifications_of @properties['notifications_of'] end |
#port_in_target_date_created ⇒ Time
139 140 141 |
# File 'lib/twilio-ruby/rest/numbers/v1/webhook.rb', line 139 def port_in_target_date_created @properties['port_in_target_date_created'] end |
#port_in_target_url ⇒ String
121 122 123 |
# File 'lib/twilio-ruby/rest/numbers/v1/webhook.rb', line 121 def port_in_target_url @properties['port_in_target_url'] end |
#port_out_target_date_created ⇒ Time
145 146 147 |
# File 'lib/twilio-ruby/rest/numbers/v1/webhook.rb', line 145 def port_out_target_date_created @properties['port_out_target_date_created'] end |
#port_out_target_url ⇒ String
127 128 129 |
# File 'lib/twilio-ruby/rest/numbers/v1/webhook.rb', line 127 def port_out_target_url @properties['port_out_target_url'] end |
#to_s ⇒ Object
Provide a user friendly representation
151 152 153 |
# File 'lib/twilio-ruby/rest/numbers/v1/webhook.rb', line 151 def to_s "<Twilio.Numbers.V1.WebhookInstance>" end |
#url ⇒ String
115 116 117 |
# File 'lib/twilio-ruby/rest/numbers/v1/webhook.rb', line 115 def url @properties['url'] end |