#:enddoc: module RailsConnector class ObjClass attr_reader :name def initialize(data) @name, @attributes = data['name'], data['attributes'] end def self.by_name(name) data = Revision.current.obj_classes[name.to_s] new(data) if data end def has_attribute?(attribute_name) @attributes.include?(attribute_name.to_s) end end end