module Enlight module Models class Model attr_accessor :id def initialize(attributes={}) attributes.each {|k,v| send("#{k}=", v) if respond_to?(k)} end end end end