Class: ObjectGraph::Pointer
- Inherits:
-
Object
- Object
- ObjectGraph::Pointer
- Defined in:
- lib/ograph.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#object_id ⇒ Object
Returns the value of attribute object_id.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(name, object_id, options = {}) ⇒ Pointer
constructor
A new instance of Pointer.
Constructor Details
#initialize(name, object_id, options = {}) ⇒ Pointer
Returns a new instance of Pointer.
416 417 418 419 420 |
# File 'lib/ograph.rb', line 416 def initialize(name, object_id, = {}) @name = name @object_id = object_id @options = end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
415 416 417 |
# File 'lib/ograph.rb', line 415 def name @name end |
#object_id ⇒ Object
Returns the value of attribute object_id.
415 416 417 |
# File 'lib/ograph.rb', line 415 def object_id @object_id end |
#options ⇒ Object
Returns the value of attribute options.
415 416 417 |
# File 'lib/ograph.rb', line 415 def @options end |
Instance Method Details
#eql?(other) ⇒ Boolean
426 427 428 |
# File 'lib/ograph.rb', line 426 def eql?(other) name.eql? other.name end |
#hash ⇒ Object
422 423 424 |
# File 'lib/ograph.rb', line 422 def hash name.hash end |