Class: Bumbleworks::Api::TrackerPresenter

Inherits:
Presenter
  • Object
show all
Defined in:
lib/bumbleworks/api/lib/presenters/tracker_presenter.rb

Instance Attribute Summary

Attributes inherited from Presenter

#presented

Instance Method Summary collapse

Methods inherited from Presenter

from_array, #in_collection?, #initialize, present

Constructor Details

This class inherits a constructor from Bumbleworks::Api::Presenter

Instance Method Details

#to_hashObject



4
5
6
7
8
9
10
11
12
13
# File 'lib/bumbleworks/api/lib/presenters/tracker_presenter.rb', line 4

def to_hash
  {
    :id => presented.id,
    :waiting_expression => presented.waiting_expression,
    :original_hash => presented.original_hash,
    :action => presented.action,
    :conditions => presented.conditions,
    :process_id => presented.wfid
  }
end