module RailsConnector class Task < AbstractModel self.primary_key = "task_id" def full_task_type case task_type when 'E' 'edit' when 'S' 'sign' end end def time_stamp_date value = self.time_stamp RailsConnector::DateAttribute.parse(value) unless value.nil? end end end