Sha256: e61eeb25697eec94846d4cf7ea51deb5568368065977d344cd1f0b87baaec0a3

Contents?: true

Size: 698 Bytes

Versions: 1

Compression:

Stored size: 698 Bytes

Contents

# -----------------------------------------------------------------------
#  Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved.
# -----------------------------------------------------------------------

require 'App42Response.rb'

module App42
  module Storage
    class OrderByType < App42Response

      ASCENDING = "ASCENDING"
      DESCENDING = "DESCENDING"
      def enum(string)
        return OrderByType.const_get(string)
      end

      def isAvailable(string)
        if(string == "ASCENDING")
          return "ASCENDING"
        elsif(string == "DESCENDING")
          return "DESCENDING";
        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/storage/OrderByType.rb