Sha256: 3f33ba571731d24902deab5fbb3d03f1647d86c73ace1b034ce886a4aecb92fc
Contents?: true
Size: 1.23 KB
Versions: 1
Compression:
Stored size: 1.23 KB
Contents
# ----------------------------------------------------------------------- # Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved. # ----------------------------------------------------------------------- require 'App42_Ruby_API/App42Response' # # 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_API-0.8.4 | lib/push/DeviceType.rb |