Sha256: cd84e064d02f308411cc685d0acf61853f3851d2bbba409d5c91bae350594388
Contents?: true
Size: 822 Bytes
Versions: 2
Compression:
Stored size: 822 Bytes
Contents
module Twilio module REST class Recordings < ListResource; end class Recording < InstanceResource def initialize(uri, client, params={}) super uri, client, params resource :transcriptions # grab a reference to the client's connection object for streaming @connection = @client.instance_variable_get :@connection end ## # Return the wav URL for this recording. def wav "https://#{@connection.address}#{@uri}.wav" end def wav!(&block) @connection.request_get @uri, &block end ## # Return the mp3 URL for this recording. def mp3 "https://#{@connection.address}#{@uri}.mp3" end def mp3!(&block) @connection.request_get "#{@uri}.mp3", &block end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
twilio-ruby-3.4.1 | lib/twilio-ruby/rest/recordings.rb |
twilio-ruby-3.4.0 | lib/twilio-ruby/rest/recordings.rb |