Module: Ohmage::API::Audit

Included in:
Ohmage::API
Defined in:
lib/ohmage/audit.rb

Instance Method Summary collapse

Instance Method Details

#audit_read(params = {}) ⇒ Object

ohmage audit/read call



8
9
10
11
12
13
14
15
16
# 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