Sha256: 536cd03f740fb84400723b13a822911aebcf23128dea2df06d0c7415bfc8e196
Contents?: true
Size: 392 Bytes
Versions: 10
Compression:
Stored size: 392 Bytes
Contents
#: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 = Revision.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
Version data entries
10 entries across 10 versions & 1 rubygems