class MotherBrain::JobTicket
A proxy object around a {JobRecord} stored in the {JobManager}. This wrapper object can be returned as a response of the public API
to a consumer. A ticket will poll it’s referenced {JobRecord} in the {JobManager} for an update about a running or completed {Job}
@api public
Attributes
id[R]
Public Class Methods
new(id)
click to toggle source
@param [Integer] id
# File lib/mb/job_ticket.rb, line 11 def initialize(id) @id = id end
Private Instance Methods
method_missing(method, *args, &block)
click to toggle source
# File lib/mb/job_ticket.rb, line 21 def method_missing(method, *args, &block) record.send(method, *args, &block) end
record()
click to toggle source
# File lib/mb/job_ticket.rb, line 17 def record JobManager.instance.find(id) end