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
222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 |
# File 'lib/ruote-kit/helpers/json_helpers.rb', line 222 def as_h(detailed=true) r = {} r['id'] = fei.sid r['fei'] = fei.sid r['wfid'] = fei.wfid r['type'] = 'workitem' r['participant_name'] = participant_name r['fields'] = h.fields r['put_at'] = h.put_at r end |