Class: App42::AppTab::DiscountType
- Inherits:
-
App42Response
- Object
- App42Response
- App42::AppTab::DiscountType
- Defined in:
- lib/appTab/DiscountType.rb
Overview
An enum that contains the months to be mentioned in the Bill.
Constant Summary collapse
- PACKAGETYPE =
"PACKAGETYPE"
- STORAGETYPE =
"STORAGETYPE"
- BANDWIDTHTYPE =
"BANDWIDTHTYPE"
- FEATURETYPE =
"FEATURETYPE"
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.
28 29 30 |
# File 'lib/appTab/DiscountType.rb', line 28 def enum(string) return DiscountType.const_get(string) end |
#isAvailable(string) ⇒ Object
Returns the value of the BillMonth.
@return the value of BillMonth.
38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/appTab/DiscountType.rb', line 38 def isAvailable(string) if(string == "PACKAGETYPE") return "PACKAGETYPE" elsif(string == "STORAGETYPE") return "STORAGETYPE" elsif(string == "BANDWIDTHTYPE") return "BANDWIDTHTYPE" elsif(string == "FEATURETYPE") return "FEATURETYPE"; else return nil end end |