Class: Neo4j::Core::RelationshipSetEntry
- Inherits:
-
Object
- Object
- Neo4j::Core::RelationshipSetEntry
- Defined in:
- lib/neo4j-core/relationship_set.rb
Instance Attribute Summary collapse
-
#nodeid ⇒ Object
Returns the value of attribute nodeid.
-
#relationship_type ⇒ Object
Returns the value of attribute relationship_type.
Instance Method Summary collapse
- #==(o) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(nodeid, relationship_type) ⇒ RelationshipSetEntry
constructor
A new instance of RelationshipSetEntry.
Constructor Details
#initialize(nodeid, relationship_type) ⇒ RelationshipSetEntry
Returns a new instance of RelationshipSetEntry.
44 45 46 |
# File 'lib/neo4j-core/relationship_set.rb', line 44 def initialize(nodeid, relationship_type) @nodeid, @relationship_type = nodeid.to_s, relationship_type.to_s end |
Instance Attribute Details
#nodeid ⇒ Object
Returns the value of attribute nodeid.
42 43 44 |
# File 'lib/neo4j-core/relationship_set.rb', line 42 def nodeid @nodeid end |
#relationship_type ⇒ Object
Returns the value of attribute relationship_type.
42 43 44 |
# File 'lib/neo4j-core/relationship_set.rb', line 42 def relationship_type @relationship_type end |
Instance Method Details
#==(o) ⇒ Object
48 49 50 |
# File 'lib/neo4j-core/relationship_set.rb', line 48 def ==(o) eql?(o) end |
#eql?(other) ⇒ Boolean
52 53 54 |
# File 'lib/neo4j-core/relationship_set.rb', line 52 def eql?(other) @nodeid == other.nodeid && @relationship_type == other.relationship_type end |
#hash ⇒ Object
56 57 58 |
# File 'lib/neo4j-core/relationship_set.rb', line 56 def hash 3 * @nodeid.hash + @relationship_type.hash end |