Sha256: 562c280b8c52a230ac2873e1bfcef2a9e61052e32f1eb49d47fcbee6723fb060
Contents?: true
Size: 1.17 KB
Versions: 1
Compression:
Stored size: 1.17 KB
Contents
require 'App42Response.rb' module App42 module AppTab # # An enum that contains 4 types of the BandwidthUnit either KB or MB or GB or # TB. # # class BandwidthUnit < App42Response unless (const_defined?(:KB)) KB = "KB" end unless (const_defined?(:MB)) MB = "MB" end unless (const_defined?(:GB)) GB = "GB" end unless (const_defined?(:TB)) TB = "TB" end # # Sets the value of the BandwidthUnit. KB or MB or GB or TB. # # @param string # - the string of BandwidthUnit either KB or MB or GB or TB. # # def enum(string) return BandwidthUnit.const_get(string) end # # Returns the value of the BandwidthUnit. KB or MB or GB or TB. # # @return the value of BandwidthUnit. # # def isAvailable(string) if(string == "KB") return "KB" elsif(string == "MB") return "MB"; elsif(string == "GB") return "GB"; elsif(string == "TB") return "TB"; 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/appTab/BandwidthUnit.rb |