class BulutfonSDK::REST::CallRecord

Public Class Methods

new(*args) click to toggle source
Calls superclass method BulutfonSDK::REST::BaseRequest::new
# File lib/bulutfon_sdk/rest/call_record.rb, line 7
def initialize(*args)
  super(*args)
  @resource = 'call-records'
end

Public Instance Methods

get( uuid, encrypt_token = false ) click to toggle source
# File lib/bulutfon_sdk/rest/call_record.rb, line 12
def get( uuid, encrypt_token = false )
  uri = prepare_uri("#{@resource}/#{uuid}", {encrypt_token: encrypt_token, id: uuid})
  { download_path: uri.to_s }
end
get_stream( uuid, encrypt_token = false ) click to toggle source
# File lib/bulutfon_sdk/rest/call_record.rb, line 17
def get_stream( uuid, encrypt_token = false )
  uri = prepare_uri("#{@resource}/#{uuid}/stream", {encrypt_token: encrypt_token, id: uuid})
  { download_path: uri.to_s }
end
save( uuid, save_path, encrypt_token = false) click to toggle source
# File lib/bulutfon_sdk/rest/call_record.rb, line 22
def save( uuid, save_path, encrypt_token = false)
  save_file( 'get', "#{@resource}/#{uuid}", save_path, {encrypt_token: encrypt_token, id: uuid})
end