Class: MigrationButton::RunnerController::Page::Migration
- Inherits:
-
Struct
- Object
- Struct
- MigrationButton::RunnerController::Page::Migration
- Defined in:
- app/controllers/migration_button/runner_controller.rb
Constant Summary collapse
- NO_FILE =
'********** NO FILE **********'
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#state ⇒ Object
Returns the value of attribute state.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
64 65 66 |
# File 'app/controllers/migration_button/runner_controller.rb', line 64 def name @name end |
#state ⇒ Object
Returns the value of attribute state
64 65 66 |
# File 'app/controllers/migration_button/runner_controller.rb', line 64 def state @state end |
#version ⇒ Object
Returns the value of attribute version
64 65 66 |
# File 'app/controllers/migration_button/runner_controller.rb', line 64 def version @version end |
Instance Method Details
#down? ⇒ Boolean
71 72 73 |
# File 'app/controllers/migration_button/runner_controller.rb', line 71 def down? state == "down" end |
#runnable? ⇒ Boolean
67 68 69 |
# File 'app/controllers/migration_button/runner_controller.rb', line 67 def runnable? name != NO_FILE end |
#up? ⇒ Boolean
75 76 77 |
# File 'app/controllers/migration_button/runner_controller.rb', line 75 def up? !down? end |