Class: Dragonfly::JobEndpoint
Instance Attribute Summary collapse
-
#job ⇒ Object
readonly
Returns the value of attribute job.
Instance Method Summary collapse
- #call(env = {}) ⇒ Object
-
#initialize(job) ⇒ JobEndpoint
constructor
A new instance of JobEndpoint.
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
#job ⇒ Object (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 |