class Restcomm::REST::Call

Public Class Methods

new(path, client, params={}) click to toggle source
Calls superclass method
   # File lib/restcomm-ruby/rest/calls.rb
15 def initialize(path, client, params={})
16 
17   super path, client, params
18   resource :recordings, :notifications, :feedback
19 end

Public Instance Methods

cancel() click to toggle source
   # File lib/restcomm-ruby/rest/calls.rb
25 def cancel
26   
27   raise "*********#{params}"
28 
29   update status: 'canceled'
30 end
hangup() click to toggle source
   # File lib/restcomm-ruby/rest/calls.rb
32 def hangup
33   update status: 'completed'
34 end
redirect_to(url) click to toggle source
   # File lib/restcomm-ruby/rest/calls.rb
21 def redirect_to(url)
22   update url: url
23 end