module Employer::Job
Attributes
id[RW]
Public Class Methods
included(base)
click to toggle source
# File lib/employer/job.rb, line 31 def self.included(base) base.extend(ClassMethods) end
Public Instance Methods
attribute_names()
click to toggle source
# File lib/employer/job.rb, line 35 def attribute_names self.class.attribute_names end
serialize()
click to toggle source
# File lib/employer/job.rb, line 43 def serialize { id: id, class: self.class.name, attributes: Hash[ attribute_names. reject { |name| self.send(name).nil? }. map { |name| [name, self.send(name)] } ] }.reject { |key, value| value.nil? } end
try_again?()
click to toggle source
# File lib/employer/job.rb, line 39 def try_again? false end