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

- (JobEndpoint) initialize(job)

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

- (Object) job (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

- (Object) call(env = {})



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

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

- (Object) inspect



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

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