#:enddoc: module RailsConnector class Attribute attr_reader :name, :type def initialize(data) @name, @type = data['name'], data['type'].to_sym end def self.by_name(name) data = Workspace.current.attributes[name.to_s] new(data) if data end def self.type_of(name) attribute = by_name(name) attribute.type if attribute end end end