Class: PgGraph::Type::SchemaObject
- 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
Instance Method Summary collapse
-
#initialize(schema, name) ⇒ SchemaObject
constructor
A new instance of SchemaObject.
- #schema_identifier ⇒ Object
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_identifier ⇒ Object
136 137 138 |
# File 'lib/pg_graph/type/type.rb', line 136 def schema_identifier [schema.schema_identifier, identifier].compact.join("::") end |