Class: Twilio::REST::Numbers::V1::PortingWebhookConfigurationFetchList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::Numbers::V1::PortingWebhookConfigurationFetchList
- Defined in:
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb
Instance Method Summary collapse
-
#fetch ⇒ PortingWebhookConfigurationFetchInstance
Fetch the PortingWebhookConfigurationFetchInstance.
-
#initialize(version) ⇒ PortingWebhookConfigurationFetchList
constructor
Initialize the PortingWebhookConfigurationFetchList.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ PortingWebhookConfigurationFetchList
Initialize the PortingWebhookConfigurationFetchList
26 27 28 29 30 31 32 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb', line 26 def initialize(version) super(version) # Path Solution @solution = { } @uri = "/Porting/Configuration/Webhook" end |
Instance Method Details
#fetch ⇒ PortingWebhookConfigurationFetchInstance
Fetch the PortingWebhookConfigurationFetchInstance
36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb', line 36 def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) payload = @version.fetch('GET', @uri, headers: headers) PortingWebhookConfigurationFetchInstance.new( @version, payload, ) end |
#to_s ⇒ Object
Provide a user friendly representation
55 56 57 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb', line 55 def to_s '#<Twilio.Numbers.V1.PortingWebhookConfigurationFetchList>' end |