Sha256: b2a297ec9e95385abdfa1838335a653ed670963df9cd5db8b54cdb6204159a7d
Contents?: true
Size: 365 Bytes
Versions: 6
Compression:
Stored size: 365 Bytes
Contents
module Neo4j module MetaModel class Property < MetaModelBase property :name, type: String property :type, type: String validates_inclusion_of :type, :in => %w( String DateTime Boolean Integer ) validates :name, presence: true has_one :in, :model, origin: :properties, model_class: 'Neo4j::MetaModel::Model' end end end
Version data entries
6 entries across 6 versions & 1 rubygems