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