Class: Dragonfly::JobEndpoint

Inherits:
Object
  • Object
show all
Defined in:
lib/dragonfly/job_endpoint.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(job) ⇒ JobEndpoint



6
7
8
# File 'lib/dragonfly/job_endpoint.rb', line 6

def initialize(job)
  @job = job
end

Instance Attribute Details

#jobObject (readonly)

Returns the value of attribute job



14
15
16
# File 'lib/dragonfly/job_endpoint.rb', line 14

def job
  @job
end

Instance Method Details

#call(env = {}) ⇒ Object



10
11
12
# File 'lib/dragonfly/job_endpoint.rb', line 10

def call(env={})
  Response.new(job, env).to_response
end

#inspectObject



16
17
18
# File 'lib/dragonfly/job_endpoint.rb', line 16

def inspect
  "<#{self.class.name} steps=#{job.steps} >"
end