Sha256: 9968d0ab6ce9f23da950f70619c56d8d210cb1bc974b9834fb9b0a27ea2e1315

Contents?: true

Size: 411 Bytes

Versions: 14

Compression:

Stored size: 411 Bytes

Contents

module Twilio
  module REST
    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
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
twilio-ruby-3.2.0 lib/twilio-ruby/rest/calls/call.rb
twilio-ruby-3.1.1 lib/twilio-ruby/rest/calls/call.rb
twilio-ruby-3.1.0 lib/twilio-ruby/rest/calls/call.rb
twilio-ruby-3.0.0 lib/twilio-ruby/rest/calls/call.rb
twilio-ruby-0.4.0 lib/twilio-ruby/rest/calls/call.rb
twilio-ruby-0.3.3 lib/twilio-ruby/rest/calls/call.rb
twilio-ruby-0.3.2 lib/twilio-ruby/rest/calls/call.rb
twilio-ruby-0.3.1 lib/twilio-ruby/rest/calls/call.rb
twilio-ruby-0.3.0 lib/twilio-ruby/rest/calls/call.rb
twilio-ruby-0.2.1 lib/twilio-ruby/rest/calls/call.rb
twilio-ruby-0.2.0 lib/twilio-ruby/rest/calls/call.rb
twilio-ruby-0.1.2 lib/twilio-ruby/rest/calls/call.rb
twilio-ruby-0.1.1 lib/twilio-ruby/rest/calls/call.rb
twilio-ruby-0.1.0 lib/twilio-ruby/rest/calls/call.rb