class App42::Push::DeviceType
Constants
- ANDROID
- IOS
- WP7
Public Instance Methods
enum(string)
click to toggle source
Sets the value of the DeviceType
.
@param string
- the string of DeviceType.
# File lib/push/DeviceType.rb, line 30 def enum(string) return DeviceType.const_get(string) end
isAvailable(string)
click to toggle source
Returns the value of the DeviceType
.
@return the value of DeviceType
.
# File lib/push/DeviceType.rb, line 40 def isAvailable(string) if(string == "ANDROID") return "ANDROID" elsif(string == "iOS") return "iOS" elsif(string == "WP7") return "WP7" elsif(string == "OTHER") return "OTHER"; else return nil end end