Sha256: dc79ec11215b8df2ccf5012e9c16488f546020a57420a81dfe994d11f0a18cb9
Contents?: true
Size: 465 Bytes
Versions: 89
Compression:
Stored size: 465 Bytes
Contents
module Xsys module Model class JobEvent def self.attr_list [:description, :created_at] end attr_reader *attr_list def initialize(attributes={}) attributes.each do |k, v| if k.to_s == 'created_at' @created_at = Time.parse(v) else self.send("#{k}=", v) if self.respond_to?(k) end end end private attr_writer *attr_list end end end
Version data entries
89 entries across 89 versions & 1 rubygems