Method: PgGraph::Data::Table#initialize
- Defined in:
- lib/pg_graph/data/data.rb
#initialize(schema, type, dimension: 2) ⇒ Table
Returns a new instance of Table.
234 235 236 237 238 239 240 241 |
# File 'lib/pg_graph/data/data.rb', line 234 def initialize(schema, type, dimension: 2) constrain schema, Schema constrain type, PgGraph::Type::Table @schema = schema super(type, dimension: dimension) @impl = {} # A table is implemented as a hash from integer ID to Record object @associations = {} # initialized by #initialize_associations end |