Class: TaskWarrior::Task
- Inherits:
-
Object
- Object
- TaskWarrior::Task
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/twdeps/task.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#dependencies ⇒ Object
Returns the value of attribute dependencies.
-
#description ⇒ Object
Returns the value of attribute description.
-
#entry ⇒ Object
Returns the value of attribute entry.
-
#id ⇒ Object
Returns the value of attribute id.
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#priority ⇒ Object
Returns the value of attribute priority.
-
#project ⇒ Object
Returns the value of attribute project.
-
#status ⇒ Object
Returns the value of attribute status.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
Instance Method Summary collapse
-
#initialize(description) ⇒ Task
constructor
A new instance of Task.
- #tags ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(description) ⇒ Task
26 27 28 29 30 31 |
# File 'lib/twdeps/task.rb', line 26 def initialize(description) @description = description @dependencies = [] @children = [] = [] end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children.
5 6 7 |
# File 'lib/twdeps/task.rb', line 5 def children @children end |
#dependencies ⇒ Object
Returns the value of attribute dependencies.
5 6 7 |
# File 'lib/twdeps/task.rb', line 5 def dependencies @dependencies end |
#description ⇒ Object
Returns the value of attribute description.
5 6 7 |
# File 'lib/twdeps/task.rb', line 5 def description @description end |
#entry ⇒ Object
Returns the value of attribute entry.
5 6 7 |
# File 'lib/twdeps/task.rb', line 5 def entry @entry end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/twdeps/task.rb', line 5 def id @id end |
#parent ⇒ Object
Returns the value of attribute parent.
5 6 7 |
# File 'lib/twdeps/task.rb', line 5 def parent @parent end |
#priority ⇒ Object
Returns the value of attribute priority.
5 6 7 |
# File 'lib/twdeps/task.rb', line 5 def priority @priority end |
#project ⇒ Object
Returns the value of attribute project.
5 6 7 |
# File 'lib/twdeps/task.rb', line 5 def project @project end |
#status ⇒ Object
Returns the value of attribute status.
5 6 7 |
# File 'lib/twdeps/task.rb', line 5 def status @status end |
#uuid ⇒ Object
Returns the value of attribute uuid.
5 6 7 |
# File 'lib/twdeps/task.rb', line 5 def uuid @uuid end |
Instance Method Details
#tags ⇒ Object
33 34 35 |
# File 'lib/twdeps/task.rb', line 33 def end |
#to_s ⇒ Object
37 38 39 |
# File 'lib/twdeps/task.rb', line 37 def to_s "Task '#{description}'".tap{|result| result << " <#{uuid}>" if uuid} end |