Class: Daylite::Project
- Inherits:
-
Base
show all
- Defined in:
- app/models/daylite/project.rb
Instance Method Summary
collapse
Methods inherited from Base
#method_missing, #readonly?
openbase_connection
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Daylite::Base
Instance Method Details
#status_codes ⇒ Object
10
11
12
13
14
15
16
17
18
19
|
# File 'app/models/daylite/project.rb', line 10
def status_codes
@@status_codes ||= {
0 => "In Progress",
1 => "Deffered",
2 => "Canceled",
3 => "Abandoned",
4 => "New",
7 => "Done",
}
end
|
#status_string ⇒ Object
21
22
23
|
# File 'app/models/daylite/project.rb', line 21
def status_string
status_codes[attributes["statusCode"]] || "Unknown status"
end
|