Class: ChangeDatabase
- Inherits:
-
Struct
- Object
- Struct
- ChangeDatabase
- Defined in:
- lib/engine/app/lib/commands/change_database.rb
Instance Attribute Summary collapse
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#database ⇒ Object
Returns the value of attribute database.
-
#session ⇒ Object
Returns the value of attribute session.
Instance Method Summary collapse
Instance Attribute Details
#backend ⇒ Object
Returns the value of attribute backend
1 2 3 |
# File 'lib/engine/app/lib/commands/change_database.rb', line 1 def backend @backend end |
#database ⇒ Object
Returns the value of attribute database
1 2 3 |
# File 'lib/engine/app/lib/commands/change_database.rb', line 1 def database @database end |
#session ⇒ Object
Returns the value of attribute session
1 2 3 |
# File 'lib/engine/app/lib/commands/change_database.rb', line 1 def session @session end |
Instance Method Details
#execute ⇒ Object
2 3 4 5 |
# File 'lib/engine/app/lib/commands/change_database.rb', line 2 def execute backend.current_database = database session[:database] = database end |