Class: Kangaroo::Util::Proxy::Report

Inherits:
Kangaroo::Util::Proxy show all
Defined in:
lib/kangaroo/util/proxy/report.rb

Instance Method Summary collapse

Methods inherited from Kangaroo::Util::Proxy

#__initialize__, #call!, new

Instance Method Details

#report(object, ids, datas = {}, context = {}) ⇒ Object

Initiate report generation

Parameters:

  • object
  • ids
  • datas (defaults to: {})
  • context (defaults to: {})

Returns:

  • id to check status on/get report



11
12
13
# File 'lib/kangaroo/util/proxy/report.rb', line 11

def report object, ids, datas = {}, context = {}
  call! :report, object, ids, data, context
end

#report_get(id) ⇒ Hash

Check status on/get report by id

Parameters:

  • id

Returns:

  • (Hash)

    report state, report result and format



19
20
21
# File 'lib/kangaroo/util/proxy/report.rb', line 19

def report_get id
  call! report_get, id
end