class App42::Upload::UploadFileType
Constants
- AUDIO
- BINARY
- CSV
- IMAGE
- JSON
- OTHER
- TXT
- VIDEO
- XML
Public Instance Methods
enum(string)
click to toggle source
Sets the value of the UploadFileType
.
@param string
- the string of UploadFileType.
# File lib/upload/UploadFileType.rb, line 48 def enum(string) return UploadFileType.const_get(string) end
isAvailable(string)
click to toggle source
Returns the value of the UploadFileType
.
@return the value of UploadFileType
.
# File lib/upload/UploadFileType.rb, line 58 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