Class: TaskWarrior::Annotation
- Inherits:
-
Object
- Object
- TaskWarrior::Annotation
- Includes:
- ActiveModel::Validations, Validations
- Defined in:
- lib/taskwarrior/annotation.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#entry ⇒ Object
Returns the value of attribute entry.
Instance Method Summary collapse
-
#initialize(description = nil) ⇒ Annotation
constructor
A new instance of Annotation.
- #to_s ⇒ Object
Methods included from Validations
#entry_cannot_be_in_the_future, #must_be_date_or_nil
Constructor Details
#initialize(description = nil) ⇒ Annotation
Returns a new instance of Annotation.
14 15 16 |
# File 'lib/taskwarrior/annotation.rb', line 14 def initialize(description = nil) @description = description end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
5 6 7 |
# File 'lib/taskwarrior/annotation.rb', line 5 def description @description end |
#entry ⇒ Object
Returns the value of attribute entry.
5 6 7 |
# File 'lib/taskwarrior/annotation.rb', line 5 def entry @entry end |
Instance Method Details
#to_s ⇒ Object
18 19 20 |
# File 'lib/taskwarrior/annotation.rb', line 18 def to_s "Annotation (#{entry}): #{description}" end |