class Bumbleworks::Api::ProcessPresenter
Public Instance Methods
entity_hash()
click to toggle source
# File lib/bumbleworks/api/lib/presenters/process_presenter.rb, line 23 def entity_hash if presented.entity { :entity => EntityPresenter.present(presented.entity).to_hash } else {} end end
extras()
click to toggle source
# File lib/bumbleworks/api/lib/presenters/process_presenter.rb, line 13 def extras if in_collection? {} else { :original_tree => presented.original_tree }.merge(entity_hash) end end
to_hash()
click to toggle source
# File lib/bumbleworks/api/lib/presenters/process_presenter.rb, line 4 def to_hash { :id => presented.id, :definition_name => presented.definition_name, :subscribed_events => presented.subscribed_events, :entity_name => presented.entity_name }.merge(extras) end