Class: MetaDb::Database

Inherits:
DbObject show all
Defined in:
lib/meta_db/db_object.rb

Instance Attribute Summary collapse

Attributes inherited from DbObject

#children, #name, #parent

Instance Method Summary collapse

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

#ownerObject (readonly)

Owner of the database



109
110
111
# File 'lib/meta_db/db_object.rb', line 109

def owner
  @owner
end

Instance Method Details

#schemasObject

List of schemas



104
105
106
# File 'lib/meta_db/db_object.rb', line 104

def schemas()
  @schemas ||= children.values
end