Class: Backburner::JobServer

Inherits:
BackburnerObject show all
Defined in:
lib/backburner/job_server.rb

Instance Attribute Summary

Attributes inherited from BackburnerObject

#handler

Instance Method Summary collapse

Methods inherited from BackburnerObject

#method_missing, #reload

Constructor Details

#initialize(raw_data, connection) ⇒ JobServer



4
5
6
7
# File 'lib/backburner/job_server.rb', line 4

def initialize raw_data, connection
  @raw_data = raw_data
  @connection = connection
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Backburner::BackburnerObject

Instance Method Details

#timeObject



9
10
11
# File 'lib/backburner/job_server.rb', line 9

def time
  @raw_data.srv_task_time
end