Sha256: 7ded4911825f12e0706f27e22511a374829be19275a0d40ecfde0d8df40c9bf3

Contents?: true

Size: 361 Bytes

Versions: 2

Compression:

Stored size: 361 Bytes

Contents

module Twilio
  class Call < InstanceResource
    def initialize(uri, client, params={})
      super uri, client, params
      resource :recordings, :transcriptions
    end

    def redirect_to(url)
      update :url => url
    end

    def cancel
      update :status => 'canceled'
    end

    def hangup
      update :status => 'completed'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
twilio-ruby-0.0.4 lib/twilio-ruby/calls/call.rb
twilio-ruby-0.0.3 lib/twilio-ruby/calls/call.rb