Class: Dynectastic::Job
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#incomplete ⇒ Object
readonly
Returns the value of attribute incomplete.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Attributes inherited from Resource
#factory, #last_request, #session
Instance Method Summary collapse
- #complete? ⇒ Boolean
- #incomplete? ⇒ Boolean
-
#initialize(request) ⇒ Job
constructor
A new instance of Job.
Methods inherited from Resource
#attributes=, #delete, #get, #post, #put
Constructor Details
#initialize(request) ⇒ Job
Returns a new instance of Job.
7 8 9 10 11 |
# File 'lib/dynectastic/job.rb', line 7 def initialize(request) @request = request @id = request.job_id @incomplete = request.job_incomplete end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/dynectastic/job.rb', line 5 def id @id end |
#incomplete ⇒ Object (readonly)
Returns the value of attribute incomplete.
5 6 7 |
# File 'lib/dynectastic/job.rb', line 5 def incomplete @incomplete end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
5 6 7 |
# File 'lib/dynectastic/job.rb', line 5 def request @request end |
Instance Method Details
#complete? ⇒ Boolean
13 14 15 |
# File 'lib/dynectastic/job.rb', line 13 def complete? not incomplete? end |
#incomplete? ⇒ Boolean
17 18 19 |
# File 'lib/dynectastic/job.rb', line 17 def incomplete? !! @incomplete end |