Class: ExistClient::Tasks::Task
- Inherits:
-
Object
- Object
- ExistClient::Tasks::Task
- Includes:
- LogicalDate
- Defined in:
- lib/exist_client/tasks/task.rb
Instance Attribute Summary collapse
-
#completed_at ⇒ Object
readonly
Returns the value of attribute completed_at.
Instance Method Summary collapse
-
#initialize(data) ⇒ Task
constructor
A new instance of Task.
- #logical_date ⇒ Object
Constructor Details
#initialize(data) ⇒ Task
Returns a new instance of Task.
8 9 10 |
# File 'lib/exist_client/tasks/task.rb', line 8 def initialize(data) @completed_at = data.fetch(:completed_at) end |
Instance Attribute Details
#completed_at ⇒ Object (readonly)
Returns the value of attribute completed_at.
6 7 8 |
# File 'lib/exist_client/tasks/task.rb', line 6 def completed_at @completed_at end |
Instance Method Details
#logical_date ⇒ Object
12 13 14 |
# File 'lib/exist_client/tasks/task.rb', line 12 def logical_date super(completed_at) end |