Class: Goon::Task
- Inherits:
-
Object
- Object
- Goon::Task
- Defined in:
- lib/goon/task.rb
Defined Under Namespace
Classes: InvalidTask
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Task
constructor
A new instance of Task.
Constructor Details
#initialize(options = {}) ⇒ Task
Returns a new instance of Task.
9 10 11 12 13 14 15 16 |
# File 'lib/goon/task.rb', line 9 def initialize( = {}) @name = [:name] @description = [:description] @body = [:body] validate_name! validate_body! end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
7 8 9 |
# File 'lib/goon/task.rb', line 7 def body @body end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/goon/task.rb', line 7 def name @name end |