lib/kamerling/task.rb in kamerling-0.0.1 vs lib/kamerling/task.rb in kamerling-0.0.2

- old
+ new

@@ -1,7 +1,14 @@ -module Kamerling class Task < UUIDObject :data, :project, done: false +module Kamerling class Task < UUIDEntity + attribute :data, String + attribute :done, Boolean, default: false + attribute :project, Project + + def to_h + super.reject { |key, _| key == :project }.merge project_uuid: project.uuid + end end end