Method: OpenWFE::Extras::Workitem#fields_hash
- Defined in:
- lib/openwfe/extras/participants/activeparticipants.rb
#fields_hash ⇒ Object
Returns a hash version of the ‘fields’ of this workitem.
(Each time this method is called, it returns a new hash).
251 252 253 254 255 256 257 258 259 |
# File 'lib/openwfe/extras/participants/activeparticipants.rb', line 251 def fields_hash return self.yattributes if self.yattributes fields.inject({}) do |r, f| r[f.fkey] = f.value r end end |