module Shift module Builder class DBModel attr_accessor :name, :attributes def initialize(name) @name = name.to_s @attributes = [] end def add_attribute(name, type) attribute = { :name => name.to_s, :type => type.to_s } @attributes.push attribute end end end end