Class: ItunesController::Job

Inherits:
Object
  • Object
show all
Defined in:
lib/itunesController/controllserver.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commandObject (readonly)

Returns the value of attribute command.



421
422
423
# File 'lib/itunesController/controllserver.rb', line 421

def command
  @command
end

#stateObject (readonly)

Returns the value of attribute state.



421
422
423
# File 'lib/itunesController/controllserver.rb', line 421

def state
  @state
end

Instance Method Details

#executeObject



428
429
430
# File 'lib/itunesController/controllserver.rb', line 428

def execute()
    @command.executeSingleThreaded(@state)
end

#to_sObject



432
433
434
# File 'lib/itunesController/controllserver.rb', line 432

def to_s
    return @command.name
end