Class: ItunesController::Job
- Inherits:
-
Object
- Object
- ItunesController::Job
- Defined in:
- lib/itunesController/controllserver.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(command, state) ⇒ Job
constructor
A new instance of Job.
- #to_s ⇒ Object
Constructor Details
#initialize(command, state) ⇒ Job
Returns a new instance of Job.
423 424 425 426 |
# File 'lib/itunesController/controllserver.rb', line 423 def initialize(command,state) @state = state @command = command end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
421 422 423 |
# File 'lib/itunesController/controllserver.rb', line 421 def command @command end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
421 422 423 |
# File 'lib/itunesController/controllserver.rb', line 421 def state @state end |
Instance Method Details
#execute ⇒ Object
428 429 430 |
# File 'lib/itunesController/controllserver.rb', line 428 def execute() @command.executeSingleThreaded(@state) end |
#to_s ⇒ Object
432 433 434 |
# File 'lib/itunesController/controllserver.rb', line 432 def to_s return @command.name end |