Sha256: 646b8e2c34505a771fc39bfea8940c308906f9689e4da792781648dd489b926d

Contents?: true

Size: 671 Bytes

Versions: 92

Compression:

Stored size: 671 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 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

92 entries across 92 versions & 2 rubygems

Version Path
neo4j-8.3.2 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-9.0.2 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-8.3.1 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-9.0.1 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-9.0.0 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-8.3.0 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-8.2.5 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-8.2.4 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-8.2.3 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-8.2.2 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-8.2.1 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-8.1.5 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-8.1.4 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-8.1.3 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-8.1.2 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-8.1.1 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-8.1.0 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-8.1.0.rc.2 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-8.0.18 lib/neo4j/active_node/has_n/association/rel_wrapper.rb
neo4j-8.1.0.rc.1 lib/neo4j/active_node/has_n/association/rel_wrapper.rb