Class: Twilio::REST::Numbers::V1::PortingWebhookConfigurationDeleteContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Twilio::REST::Numbers::V1::PortingWebhookConfigurationDeleteContext
- Defined in:
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb
Instance Method Summary collapse
-
#delete ⇒ Boolean
Delete the PortingWebhookConfigurationDeleteInstance.
-
#initialize(version, webhook_type) ⇒ PortingWebhookConfigurationDeleteContext
constructor
Initialize the PortingWebhookConfigurationDeleteContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, webhook_type) ⇒ PortingWebhookConfigurationDeleteContext
Initialize the PortingWebhookConfigurationDeleteContext
49 50 51 52 53 54 55 56 57 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb', line 49 def initialize(version, webhook_type) super(version) # Path Solution @solution = { webhook_type: webhook_type, } @uri = "/Porting/Configuration/Webhook/#{@solution[:webhook_type]}" end |
Instance Method Details
#delete ⇒ Boolean
Delete the PortingWebhookConfigurationDeleteInstance
61 62 63 64 65 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb', line 61 def delete @version.delete('DELETE', @uri) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
77 78 79 80 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb', line 77 def inspect context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Numbers.V1.PortingWebhookConfigurationDeleteContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
70 71 72 73 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb', line 70 def to_s context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Numbers.V1.PortingWebhookConfigurationDeleteContext #{context}>" end |