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

Returns a new instance of JobEndpoint.



4
5
6
# File 'lib/dragonfly/job_endpoint.rb', line 4

def initialize(job)
  @job = job
end

Instance Attribute Details

#jobObject (readonly)

Returns the value of attribute job



12
13
14
# File 'lib/dragonfly/job_endpoint.rb', line 12

def job
  @job
end

Instance Method Details

#call(env = {}) ⇒ Object



8
9
10
# File 'lib/dragonfly/job_endpoint.rb', line 8

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