class App42::AppTab::BillMonth
An enum that contains the months to be mentioned in the Bill
.
Constants
- APRIL
- AUGUST
- DECEMBER
- FEBRURAY
- JANUARY
- JULY
- JUNE
- MARCH
- MAY
- NOVEMBER
- OCTOBER
- SEPTEMBER
Public Instance Methods
enum(string)
click to toggle source
Sets the value of the BillMonth
.
@param string
- the string of BillMonth
# File lib/appTab/BillMonth.rb, line 52 def enum(string) return BillMonth.const_get(string) end
isAvailable(string)
click to toggle source
Returns the value of the BillMonth
.
@return the value of BillMonth.
# File lib/appTab/BillMonth.rb, line 62 def isAvailable(string) if(string == "JANUARY") return "JANUARY" elsif(string == "FEBRURARY") return "FEBRURARY" elsif(string == "MARCH") return "MARCH" elsif(string == "APRIL") return "APRIL" elsif(string == "MAY") return "MAY" elsif(string == "JUNE") return "JUNE" elsif(string == "JULY") return "JULY" elsif(string == "AUGUST") return "AUGUST" elsif(string == "SEPTEMBER") return "SEPTEMBER" elsif(string == "OCTOBER") return "OCTOBER" elsif(string == "NOVEMBER") return "NOVEMBER" elsif(string == "DECEMBER") return "DECEMBER"; else return nil end end