Class: PgGraph::Type::SchemaObject

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

Overview

Schema objects are owned by the schema. This includes tables and user-defined types but not records that are owned by their tables

Direct Known Subclasses

Table, Type

Instance Method Summary collapse

Methods inherited from Node

#dump, #guid, #identifier, #inspect, #inspect_inner

Constructor Details

#initialize(schema, name) ⇒ SchemaObject

Returns a new instance of SchemaObject.



131
132
133
134
# File 'lib/pg_graph/type/type.rb', line 131

def initialize(schema, name)
  constrain schema, Schema
  super
end

Instance Method Details

#schema_identifierObject



136
137
138
# File 'lib/pg_graph/type/type.rb', line 136

def schema_identifier
  [schema.schema_identifier, identifier].compact.join("::")
end