Class: PgGraph::Data::Value

Inherits:
Node
  • Object
show all
Defined in:
lib/pg_graph/data/value.rb

Direct Known Subclasses

MmTableValue, RecordValue, TableValue

Instance Attribute Summary collapse

Attributes inherited from Node

#dimension, #type

Instance Method Summary collapse

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_objectObject (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