Class: Twilio::REST::Numbers::V1::PortingWebhookConfigurationDeleteInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Numbers::V1::PortingWebhookConfigurationDeleteInstance
- Defined in:
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb
Instance Method Summary collapse
-
#context ⇒ PortingWebhookConfigurationDeleteContext
Generate an instance context for the instance, the context is capable of performing various actions.
-
#delete ⇒ Boolean
Delete the PortingWebhookConfigurationDeleteInstance.
-
#initialize(version, webhook_type: nil) ⇒ PortingWebhookConfigurationDeleteInstance
constructor
Initialize the PortingWebhookConfigurationDeleteInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, webhook_type: nil) ⇒ PortingWebhookConfigurationDeleteInstance
Initialize the PortingWebhookConfigurationDeleteInstance
121 122 123 124 125 126 127 128 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb', line 121 def initialize(version , webhook_type: nil) super(version) # Context @instance_context = nil @params = { 'webhook_type' => webhook_type || @properties['webhook_type'] , } end |
Instance Method Details
#context ⇒ PortingWebhookConfigurationDeleteContext
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context
134 135 136 137 138 139 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb', line 134 def context unless @instance_context @instance_context = PortingWebhookConfigurationDeleteContext.new(@version , @params['webhook_type']) end @instance_context end |
#delete ⇒ Boolean
Delete the PortingWebhookConfigurationDeleteInstance
144 145 146 147 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb', line 144 def delete context.delete end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
158 159 160 161 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb', line 158 def inspect values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Numbers.V1.PortingWebhookConfigurationDeleteInstance #{values}>" end |
#to_s ⇒ Object
Provide a user friendly representation
151 152 153 154 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb', line 151 def to_s values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Numbers.V1.PortingWebhookConfigurationDeleteInstance #{values}>" end |