Class: Ruote::Workitem
- Inherits:
-
Object
- Object
- Ruote::Workitem
- Defined in:
- lib/ruote-kit/helpers/json_helpers.rb
Overview
Re-opening to provide an as_h method
Instance Method Summary collapse
Instance Method Details
#as_h(detailed = true) ⇒ Object
234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 |
# File 'lib/ruote-kit/helpers/json_helpers.rb', line 234 def as_h(detailed=true) r = {} r['id'] = fei.sid r['fei'] = fei.sid r['wfid'] = fei.wfid r['wf_name'] = wf_name r['wf_revision'] = wf_revision r['type'] = 'workitem' r['participant_name'] = participant_name r['fields'] = h.fields r['put_at'] = h.put_at r end |