Sha256: 625595364b8c6e68442c882b5651881eef291429c8272d9b3e4dcbf1dbb58045

Contents?: true

Size: 681 Bytes

Versions: 62

Compression:

Stored size: 681 Bytes

Contents

class Neo4j::ActiveNode::HasN::Association
  # Provides the interface needed to interact with the ActiveRel query factory.
  class RelWrapper
    include Neo4j::Shared::Cypher::RelIdentifiers
    include Neo4j::Shared::Cypher::CreateMethod

    attr_reader :type, :association
    attr_accessor :properties
    private :association
    alias_method :props_for_create, :properties

    def initialize(association, properties = {})
      @association = association
      @properties = properties
      @type = association.relationship_type(true)
      creates_unique(association.creates_unique_option) if association.unique?
    end

    def persisted?
      false
    end
  end
end

Version data entries

62 entries across 62 versions & 2 rubygems

Version Path
neo4j-6.1.12 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-6.0.9 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-7.0.7 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-6.1.11 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-7.0.6 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-7.0.5 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-7.0.4 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-7.0.3 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-7.0.2 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-7.0.1 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-7.0.0 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-7.0.0.rc.7 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-7.0.0.rc.6 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-7.0.0.rc.5 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-6.1.10 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-6.0.8 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-7.0.0.rc.4 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-7.0.0.rc.3 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-7.0.0.rc.2 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-6.1.9 lib/neo4j/active_node/has_n/association/rel_wrapper.rb