Class: BackgroundQueue::ClientLib::JobHandle
- Inherits:
-
Object
- Object
- BackgroundQueue::ClientLib::JobHandle
- 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
-
#job_id ⇒ Object
readonly
Returns the value of attribute job_id.
-
#owner_id ⇒ Object
readonly
Returns the value of attribute owner_id.
-
#server ⇒ Object
readonly
Returns the value of attribute server.
Instance Method Summary collapse
-
#initialize(owner_id, job_id, server) ⇒ JobHandle
constructor
A new instance of JobHandle.
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_id ⇒ Object (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_id ⇒ Object (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 |
#server ⇒ Object (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 |