module Angus::StatusCodes
Constants
- HTTP_STATUS_CODE_CONFLICT
- HTTP_STATUS_CODE_FORBIDDEN
- HTTP_STATUS_CODE_INTERNAL_SERVER_ERROR
- HTTP_STATUS_CODE_NOT_FOUND
- HTTP_STATUS_CODE_OK
TODO remove HTTP_STATUS from all constants
- HTTP_STATUS_CODE_UNAUTHORIZED
- HTTP_STATUS_CODE_UNPROCESSABLE_ENTITY
Public Class Methods
included(base)
click to toggle source
# File lib/angus/status_codes.rb, line 15 def self.included(base) self.constants.each do |const| unless base.const_defined?(const) base.const_set(const, self.const_get(const)) end end end