Class: T2Server::Run::Status
- Inherits:
-
Object
- Object
- T2Server::Run::Status
- Defined in:
- lib/t2-server/run.rb
Overview
:stopdoc:
Constant Summary collapse
- STATE2TEXT =
{ :initialized => "Initialized", :running => "Operating", :finished => "Finished", :stopped => "Stopped", :deleted => "Deleted" }
- TEXT2STATE =
{ "Initialized" => :initialized, "Operating" => :running, "Finished" => :finished, "Stopped" => :stopped }
Class Method Summary collapse
Class Method Details
.to_sym(text) ⇒ Object
1243 1244 1245 |
# File 'lib/t2-server/run.rb', line 1243 def Status.to_sym(text) TEXT2STATE[text] end |
.to_text(state) ⇒ Object
1239 1240 1241 |
# File 'lib/t2-server/run.rb', line 1239 def Status.to_text(state) STATE2TEXT[state.to_sym] end |