Sha256: 59939ad708730f86f39d7e004a626d57c0ff2723fdd504baa29abd613ff0c978

Contents?: true

Size: 686 Bytes

Versions: 42

Compression:

Stored size: 686 Bytes

Contents

class ActiveGraph::Node::HasN::Association
  # Provides the interface needed to interact with the Relationship query factory.
  class RelWrapper
    include ActiveGraph::Shared::Cypher::RelIdentifiers
    include ActiveGraph::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

42 entries across 42 versions & 1 rubygems

Version Path
activegraph-12.0.0.beta.4 lib/active_graph/node/has_n/association/rel_wrapper.rb
activegraph-11.5.0.beta.3 lib/active_graph/node/has_n/association/rel_wrapper.rb
activegraph-12.0.0.beta.3 lib/active_graph/node/has_n/association/rel_wrapper.rb
activegraph-12.0.0.beta.2 lib/active_graph/node/has_n/association/rel_wrapper.rb
activegraph-11.5.0.beta.2 lib/active_graph/node/has_n/association/rel_wrapper.rb
activegraph-12.0.0.beta.1 lib/active_graph/node/has_n/association/rel_wrapper.rb
activegraph-11.5.0.beta.1 lib/active_graph/node/has_n/association/rel_wrapper.rb
activegraph-11.5.0.alpha.1 lib/active_graph/node/has_n/association/rel_wrapper.rb
activegraph-11.4.0 lib/active_graph/node/has_n/association/rel_wrapper.rb
activegraph-11.3.1 lib/active_graph/node/has_n/association/rel_wrapper.rb
activegraph-11.3.0 lib/active_graph/node/has_n/association/rel_wrapper.rb
activegraph-11.2.0 lib/active_graph/node/has_n/association/rel_wrapper.rb
activegraph-11.1.0 lib/active_graph/node/has_n/association/rel_wrapper.rb
activegraph-11.1.0.beta.1 lib/active_graph/node/has_n/association/rel_wrapper.rb
activegraph-11.1.0.alpha.4 lib/active_graph/node/has_n/association/rel_wrapper.rb
activegraph-11.1.0.alpha.3 lib/active_graph/node/has_n/association/rel_wrapper.rb
activegraph-11.1.0.alpha.2 lib/active_graph/node/has_n/association/rel_wrapper.rb
activegraph-11.1.0.alpha.1 lib/active_graph/node/has_n/association/rel_wrapper.rb
activegraph-10.2.0.beta.1 lib/active_graph/node/has_n/association/rel_wrapper.rb
activegraph-11.0.2-java lib/active_graph/node/has_n/association/rel_wrapper.rb