Sha256: 36dfdf2b26c65a35414c50fdd5e6df991cacebef6434f35bb3161be1dbd5c4c5

Contents?: true

Size: 586 Bytes

Versions: 2

Compression:

Stored size: 586 Bytes

Contents

module Twilio
  class Recording < TwilioObject    
    def list(optional = {})
      self.connection.class.get("/Recordings", :query => optional)  
    end
    
    def get(recording_sid)
      self.connection.class.get("/Recordings/#{recording_sid}")  
    end
    
    def delete(recording_sid)
      self.connection.class.delete("/Recordings/#{recording_sid}")
    end
    
    def transcriptions(recording_sid, transcription_sid = nil)
      self.connection.class.get("/Recordings/#{recording_sid}/Transcriptions#{ '/' + transcription_sid if transcription_sid }") 
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
webficient-twilio-1.0.0 lib/twilio/recording.rb
webficient-twilio-1.2.0 lib/twilio/recording.rb