Class: BackgroundQueue::ClientLib::JobHandle

Inherits:
Object
  • Object
show all
Defined in:
lib/background_queue/client_lib/job_handle.rb

Overview

returned from add_task to describe what the job/server was added. this is becuase you can call add_task without a job_id, and not know what server was used. this is passed to get_status

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(owner_id, job_id, server) ⇒ JobHandle

Returns a new instance of JobHandle.



11
12
13
14
15
# File 'lib/background_queue/client_lib/job_handle.rb', line 11

def initialize(owner_id, job_id, server)
  @owner_id = owner_id
  @job_id = job_id
  @server = server
end

Instance Attribute Details

#job_idObject (readonly)

Returns the value of attribute job_id.



8
9
10
# File 'lib/background_queue/client_lib/job_handle.rb', line 8

def job_id
  @job_id
end

#owner_idObject (readonly)

Returns the value of attribute owner_id.



7
8
9
# File 'lib/background_queue/client_lib/job_handle.rb', line 7

def owner_id
  @owner_id
end

#serverObject (readonly)

Returns the value of attribute server.



9
10
11
# File 'lib/background_queue/client_lib/job_handle.rb', line 9

def server
  @server
end