Class: PgGraph::Data::Value
Direct Known Subclasses
Instance Attribute Summary collapse
-
#referenced_object ⇒ Object
readonly
Returns the value of attribute referenced_object.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(type, referenced_object, **opts) ⇒ Value
constructor
A new instance of Value.
Methods inherited from Node
#data, #inspect, #object, #to_h, #to_yaml, #value, #value_type
Constructor Details
#initialize(type, referenced_object, **opts) ⇒ Value
Returns a new instance of Value.
4 5 6 7 |
# File 'lib/pg_graph/data/value.rb', line 4 def initialize(type, referenced_object, **opts) super(type, **opts) @referenced_object = referenced_object end |
Instance Attribute Details
#referenced_object ⇒ Object (readonly)
Returns the value of attribute referenced_object.
3 4 5 |
# File 'lib/pg_graph/data/value.rb', line 3 def referenced_object @referenced_object end |