Method: PureCloud::WorkItemDetails#to_hash

Defined in:
lib/purecloud/models/work_item_details.rb

#to_hashObject

return the object in the form of hash



334
335
336
337
338
339
340
341
342
# File 'lib/purecloud/models/work_item_details.rb', line 334

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    next if value.nil?
    hash[param] = _to_hash(value)
  end
  hash
end