Sha256: 358c4568643149f15059b6ec8a092713d454ffbf2fc0c448a8a0f337cadf5a65
Contents?: true
Size: 1.94 KB
Versions: 1
Compression:
Stored size: 1.94 KB
Contents
# ----------------------------------------------------------------------- # Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved. # ----------------------------------------------------------------------- require 'App42_Ruby_API/App42Response' # # An enum that defines the type of the file to be uploaded on cloud. # module App42 module Upload class UploadFileType < App42Response unless (const_defined?(:AUDIO)) AUDIO = "AUDIO" end unless (const_defined?(:VIDEO)) VIDEO = "VIDEO" end unless (const_defined?(:IMAGE)) IMAGE = "IMAGE" end unless (const_defined?(:BINARY)) BINARY = "BINARY" end unless (const_defined?(:TXT)) TXT = "TXT" end unless (const_defined?(:XML)) XML = "XML" end unless (const_defined?(:CSV)) CSV = "CSV" end unless (const_defined?(:JSON)) JSON = "JSON" end unless (const_defined?(:OTHER)) OTHER = "OTHER" end # # Sets the value of the UploadFileType. # # @param string # - the string of UploadFileType. # def enum(string) return UploadFileType.const_get(string) end # # Returns the value of the UploadFileType. # # @return the value of UploadFileType. # def isAvailable(string) if(string == "AUDIO") return "AUDIO" elsif(string == "VIDEO") return "VIDEO" elsif(string == "IMAGE") return "IMAGE" elsif(string == "BINARY") return "BINARY" elsif(string == "TXT") return "TXT" elsif(string == "XML") return "XML" elsif(string == "CSV") return "CSV" elsif(string == "JSON") return "JSON" 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/upload/UploadFileType.rb |