class FlexiScale::Job
Constants
- STATUS_IN_WORDS
Public Instance Methods
to_handy_hash()
click to toggle source
# File lib/api/Flexiscale APIAddons.rb, line 159 def to_handy_hash ::FlexiScale::attrs_to_hash(self, :type_id, :description, :parent_job, :notes ).merge( :fxs_id => self.job_id, :fxs_status => self.status, :status => STATUS_IN_WORDS[self.status], :started_at => self.started.to_utc_time, :finished_at => self.finished ? self.finished.to_utc_time : nil ) end