Class: HyperTodo::Task
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- HyperTodo::Task
- Defined in:
- lib/hypertodo/task.rb
Constant Summary collapse
- NOT_YET =
0
- DONE =
1
- PENDING =
2
- STATUS =
{ 'NOT_YET' => NOT_YET, 'DONE' => DONE, 'PENDING' => PENDING }.freeze
Instance Method Summary collapse
Instance Method Details
#status_name ⇒ Object
20 21 22 |
# File 'lib/hypertodo/task.rb', line 20 def status_name STATUS.key(self.status) end |