Class: Wayfarer::Task
- Inherits:
-
Object
- Object
- Wayfarer::Task
- Includes:
- Stringify
- Defined in:
- lib/wayfarer/task.rb
Instance Attribute Summary collapse
-
#batch ⇒ Object
readonly
Returns the value of attribute batch.
-
#job ⇒ Object
Returns the value of attribute job.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #barrier ⇒ Object
- #counter ⇒ Object
-
#initialize(url, batch) ⇒ Task
constructor
A new instance of Task.
Methods included from Stringify
Constructor Details
#initialize(url, batch) ⇒ Task
Returns a new instance of Task.
16 17 18 19 20 |
# File 'lib/wayfarer/task.rb', line 16 def initialize(url, batch) @url = url @batch = batch @metadata = OpenStruct.new end |
Instance Attribute Details
#batch ⇒ Object (readonly)
Returns the value of attribute batch.
7 8 9 |
# File 'lib/wayfarer/task.rb', line 7 def batch @batch end |
#job ⇒ Object
Returns the value of attribute job.
11 12 13 |
# File 'lib/wayfarer/task.rb', line 11 def job @job end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
7 8 9 |
# File 'lib/wayfarer/task.rb', line 7 def @metadata end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
7 8 9 |
# File 'lib/wayfarer/task.rb', line 7 def url @url end |