class App42::AppTab::Currency
An enum that contains the Currency
Unit to be mentioned in the Bill
.
Constants
- ASD
- CAD
- CNY
- EUR
- GBP
- INR
- NZD
- USD
- YEN
Public Instance Methods
enum(string)
click to toggle source
Sets the value of the CurrencyUnit.
@param value
- the value of CurrencyUnit
# File lib/appTab/Currency.rb, line 43 def enum(string) return Currency.const_get(string) end
isAvailable(string)
click to toggle source
Returns the value of the CurrencyUnit.
@return the value of CurrencyUnit.
# File lib/appTab/Currency.rb, line 53 def isAvailable(string) if(string == "USD") return "USD" elsif(string == "EUR") return "EUR" elsif(string == "INR") return "INR" elsif(string == "YEN") return "YEN" elsif(string == "GBP") return "GBP" elsif(string == "ASD") return "ASD" elsif(string == "CAD") return "CAD" elsif(string == "NZD") return "NZD" elsif(string == "CNY") return "CNY"; else return nil end end