Class: Twilio::REST::Numbers::V1::PortingWebhookConfigurationList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::Numbers::V1::PortingWebhookConfigurationList
- Defined in:
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb
Instance Method Summary collapse
-
#create(body: :unset) ⇒ PortingWebhookConfigurationInstance
Create the PortingWebhookConfigurationInstance.
-
#initialize(version) ⇒ PortingWebhookConfigurationList
constructor
Initialize the PortingWebhookConfigurationList.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ PortingWebhookConfigurationList
Initialize the PortingWebhookConfigurationList
26 27 28 29 30 31 32 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb', line 26 def initialize(version) super(version) # Path Solution @solution = { } @uri = "/Porting/Configuration/Webhook" end |
Instance Method Details
#create(body: :unset) ⇒ PortingWebhookConfigurationInstance
Create the PortingWebhookConfigurationInstance
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb', line 37 def create(body: :unset ) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) headers['Content-Type'] = 'application/json' payload = @version.create('POST', @uri, headers: headers, data: body.to_json) PortingWebhookConfigurationInstance.new( @version, payload, ) end |
#to_s ⇒ Object
Provide a user friendly representation
57 58 59 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb', line 57 def to_s '#<Twilio.Numbers.V1.PortingWebhookConfigurationList>' end |