Class: Toodledo::Status
- Inherits:
-
Object
- Object
- Toodledo::Status
- Defined in:
- lib/toodledo/status.rb
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
33 34 35 |
# File 'lib/toodledo/status.rb', line 33 def self.each STATUS_ARRAY.each{|value| yield(value)} end |
.valid?(input) ⇒ Boolean
37 38 39 40 41 42 43 44 |
# File 'lib/toodledo/status.rb', line 37 def self.valid?(input) for status in STATUS_ARRAY if (status == input) return true end end return false end |