Method: App42::Upload::UploadFileType#isAvailable

Defined in:
lib/upload/UploadFileType.rb

#isAvailable(string) ⇒ Object

Returns the value of the UploadFileType.

Returns:

  • the value of UploadFileType.



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# 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