module Ohmage::API::Audit

Public Instance Methods

audit_read(params = {}) click to toggle source

ohmage audit/read call @see github.com/ohmage/server/wiki/Audit-APIs#auditRead @returns [Array: Ohmage::Audit objects] matching criteria and output format

# File lib/ohmage/audit.rb, line 8
def audit_read(params = {})
  request = Ohmage::Request.new(self, :post, 'audit/read', params)
  # TODO: make a utility to abstract creation of array of base objects
  t = []
  request.perform[:audits].each do |k, v|
    t << Ohmage::Audit.new(k => v)
  end
  t
end