Sha256: a0a042554bb877a6276deb3920ec1382e435725655c545bd1acdf86adc0212af

Contents?: true

Size: 438 Bytes

Versions: 8

Compression:

Stored size: 438 Bytes

Contents

module Mack
  module Utils # :nodoc:
    class HttpStatusCodes < Mack::Utils::RegistryMap
      
      def initial_state
        YAML.load(File.read(File.join(File.dirname(__FILE__), 'http_status_codes.yml')))
      end
      
      class << self
        
        def get(status)
          self.registered_items[status.to_i] || 'UNKNOWN HTTP STATUS'
        end
        
      end
      
    end # HttpStatusCodes
  end # Utils
end # Mack

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mack-0.8.0.101 lib/mack/utils/http_status_codes.rb
mack-0.8.0.100 lib/mack/utils/http_status_codes.rb
mack-0.8.1 lib/mack/utils/http_status_codes.rb
mack-0.8.2 lib/mack/utils/http_status_codes.rb
mack-0.8.0 lib/mack/utils/http_status_codes.rb
mack-0.8.0.2 lib/mack/utils/http_status_codes.rb
mack-0.8.3 lib/mack/utils/http_status_codes.rb
mack-0.8.3.1 lib/mack/utils/http_status_codes.rb