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

Version Path
neo4j-meta_model-0.4.0 app/models/neo4j/meta_model/property.rb
neo4j-meta_model-0.3.5 app/models/neo4j/meta_model/property.rb
neo4j-meta_model-0.3.4 app/models/neo4j/meta_model/property.rb
neo4j-meta_model-0.3.3 app/models/neo4j/meta_model/property.rb
neo4j-meta_model-0.3.2 app/models/neo4j/meta_model/property.rb
neo4j-meta_model-0.3.1 app/models/neo4j/meta_model/property.rb