Sha256: 44c454e198dd63730e33b7fd201244b02fcba579af9f8600cb613edb2e521ed2
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
# ----------------------------------------------------------------------- # Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved. # ----------------------------------------------------------------------- require 'App42Response.rb' # # An enum that defines the type of the device to be uploaded on cloud. # module App42 module Push class DeviceType < App42Response unless (const_defined?(:ANDROID)) ANDROID = "ANDROID" end unless (const_defined?(:IOS)) IOS = "iOS" end unless (const_defined?(:WP7)) WP7 = "WP7" end # # Sets the value of the DeviceType. # # @param string # - the string of DeviceType. # def enum(string) return DeviceType.const_get(string) end # # Returns the value of the DeviceType. # # @return the value of DeviceType. # 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 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
App42_RUBY_SDK-0.8.3 | lib/push/DeviceType.rb |