Class: Twilio::REST::Call
Instance Method Summary
collapse
#delete, #inspect, #method_missing, #refresh, #update
Methods included from Utils
#detwilify, #twilify
Constructor Details
#initialize(path, client, params = {}) ⇒ Call
15
16
17
18
|
# File 'lib/twilio-ruby/rest/calls.rb', line 15
def initialize(path, client, params={})
super path, client, params
resource :recordings, :notifications, :feedback
end
|
Instance Method Details
#cancel ⇒ Object
24
25
26
|
# File 'lib/twilio-ruby/rest/calls.rb', line 24
def cancel
update status: 'canceled'
end
|
#hangup ⇒ Object
28
29
30
|
# File 'lib/twilio-ruby/rest/calls.rb', line 28
def hangup
update status: 'completed'
end
|
#redirect_to(url) ⇒ Object
20
21
22
|
# File 'lib/twilio-ruby/rest/calls.rb', line 20
def redirect_to(url)
update url: url
end
|