class App42::AppTab::DiscountType
An enum that contains the months to be mentioned in the Bill
.
Constants
- BANDWIDTHTYPE
- FEATURETYPE
- PACKAGETYPE
- STORAGETYPE
Public Instance Methods
enum(string)
click to toggle source
Sets the value of the BillMonth
.
@param string
- the string of BillMonth
# File lib/appTab/DiscountType.rb, line 28 def enum(string) return DiscountType.const_get(string) end
isAvailable(string)
click to toggle source
Returns the value of the BillMonth
.
@return the value of BillMonth.
# 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