Class: App42::AppTab::BillMonth
- Inherits:
-
App42Response
- Object
- App42Response
- App42::AppTab::BillMonth
- Defined in:
- lib/appTab/BillMonth.rb
Overview
An enum that contains the months to be mentioned in the Bill.
Constant Summary collapse
- JANUARY =
"JANUARY"- FEBRURAY =
"FEBRURAY"- MARCH =
"MARCH"- APRIL =
"APRIL"- MAY =
"MAY"- JUNE =
"JUNE"- JULY =
"JULY"- AUGUST =
"AUGUST"- SEPTEMBER =
"SEPTEMBER"- OCTOBER =
"OCTOBER"- NOVEMBER =
"NOVEMBER"- DECEMBER =
"DECEMBER"
Instance Attribute Summary
Attributes inherited from App42Response
#isResponseSuccess, #strResponse, #totalRecords
Instance Method Summary collapse
-
#enum(string) ⇒ Object
Sets the value of the BillMonth.
-
#isAvailable(string) ⇒ Object
Returns the value of the BillMonth.
Instance Method Details
#enum(string) ⇒ Object
Sets the value of the BillMonth.
52 53 54 |
# File 'lib/appTab/BillMonth.rb', line 52 def enum(string) return BillMonth.const_get(string) end |
#isAvailable(string) ⇒ Object
Returns the value of the BillMonth.
@return the value of BillMonth.
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
# 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 |