Class: Status
- Inherits:
-
Object
- Object
- Status
- Defined in:
- lib/toodledo/status.rb
Overview
The possible values for the status field of a task.
Constant Summary collapse
- NONE =
0
- NEXT_ACTION =
1
- ACTIVE =
2
- PLANNING =
3
- DELEGATED =
4
- WAITING =
5
- HOLD =
6
- POSTPONED =
7
- SOMEDAY =
8
- CANCELLED =
9
- REFERENCE =
10
- STATUS_ARRAY =
[ NONE, NEXT_ACTION, ACTIVE, PLANNING, DELEGATED, WAITING, HOLD, POSTPONED, SOMEDAY, CANCELLED, REFERENCE ]
Class Method Summary collapse
Class Method Details
.each ⇒ Object
32 33 34 |
# File 'lib/toodledo/status.rb', line 32 def self.each STATUS_ARRAY.each{|value| yield(value)} end |
.valid?(input) ⇒ Boolean
36 37 38 39 40 41 42 43 |
# File 'lib/toodledo/status.rb', line 36 def self.valid?(input) for status in STATUS_ARRAY if (status == input) return true end end return false end |