module Miniphonic::Info

Public Instance Methods

algorithms() click to toggle source

Returns a hash where the keys are audio processing algorithms and the values option/info hashes

# File lib/miniphonic/info.rb, line 28
def algorithms
  get_info :algorithms
end
files_on(uuid) click to toggle source
# File lib/miniphonic/info.rb, line 57
def files_on(uuid)
  response = from_server "api/service/#{ uuid }/ls.json"
  response.data
end
get_info(name) click to toggle source
# File lib/miniphonic/info.rb, line 62
def get_info(name)
  response = from_server "/api/info/#{ name }.json"
  response.data
end
info() click to toggle source

Returns a hash with the combined data of output_files, service_types, status_codes, algorithms as well as all known file endings (those are all keys)

# File lib/miniphonic/info.rb, line 52
def info
  response = from_server "api/info.json"
  response.data
end
output_files() click to toggle source

Returns a hash of all available output formats (keys) and their metadata (values)

# File lib/miniphonic/info.rb, line 34
def output_files
  get_info :output_files
end
service_types() click to toggle source

Returns a hash where the keys are outgoing services

# File lib/miniphonic/info.rb, line 22
def service_types
  get_info :service_types
end
services() click to toggle source

Returns an array of hashes like this:

{
   "outgoing": true,
   "display_name": "Mr. Derpson",
   "uuid": "h8DesucEK6mepmyxtW83MY",
   "incoming": true,
   "type": "dropbox",
   "email": "me@derp.com"

}

# File lib/miniphonic/info.rb, line 16
def services
  response = from_server "/api/services.json"
  response.data
end
status_codes() click to toggle source

Returns a dictionary of production status codes

# File lib/miniphonic/info.rb, line 39
def status_codes
  get_info :production_status
end
user_info() click to toggle source

Returns a hash of user information

# File lib/miniphonic/info.rb, line 44
def user_info
  response = from_server "api/user.json"
  response.data
end