Class: ExistClient::Tasks::Task

Inherits:
Object
  • Object
show all
Includes:
LogicalDate
Defined in:
lib/exist_client/tasks/task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_atObject (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_dateObject



12
13
14
# File 'lib/exist_client/tasks/task.rb', line 12

def logical_date
  super(completed_at)
end