Class: MetaDb::Database
Instance Attribute Summary collapse
-
#owner ⇒ Object
readonly
Owner of the database.
Attributes inherited from DbObject
Instance Method Summary collapse
-
#initialize(name, owner) ⇒ Database
constructor
A new instance of Database.
-
#schemas ⇒ Object
List of schemas.
Methods inherited from DbObject
#<=>, #[], attrs, #dot, #dump, #dump_attrs, init, #inspect, #path
Constructor Details
#initialize(name, owner) ⇒ Database
Returns a new instance of Database.
111 112 113 114 |
# File 'lib/meta_db/db_object.rb', line 111 def initialize(name, owner) super(nil, name) @owner = owner end |
Instance Attribute Details
#owner ⇒ Object (readonly)
Owner of the database
109 110 111 |
# File 'lib/meta_db/db_object.rb', line 109 def owner @owner end |
Instance Method Details
#schemas ⇒ Object
List of schemas
104 105 106 |
# File 'lib/meta_db/db_object.rb', line 104 def schemas() @schemas ||= children.values end |