Class: DatabaseList
- Inherits:
-
Struct
- Object
- Struct
- DatabaseList
- Defined in:
- lib/engine/app/lib/commands/database_list.rb
Instance Attribute Summary collapse
-
#backend ⇒ Object
Returns the value of attribute backend.
Instance Method Summary collapse
Instance Attribute Details
#backend ⇒ Object
Returns the value of attribute backend
1 2 3 |
# File 'lib/engine/app/lib/commands/database_list.rb', line 1 def backend @backend end |
Instance Method Details
#result ⇒ Object
2 3 4 |
# File 'lib/engine/app/lib/commands/database_list.rb', line 2 def result backend.info.keys.map{|d| d.match(/db(\d+)/);$1}.compact end |