Sha256: 4354ae02db7477cb84d42818c57299f3eb5411a32af780ca5e2e3a987a52ea70

Contents?: true

Size: 642 Bytes

Versions: 7

Compression:

Stored size: 642 Bytes

Contents

module OurKudos
  class ResponseCodes
    
    CODES_MAP = {
      :I1 => 'Resource created',
      :I2 => 'Resource updated',
      :E1 => 'No such api key',
      :E2 => "Api key expired",
      :E3 => 'This app / site is blocked',
      :E4 => "Cannot save this resource",
      :E5 => 'Server error',
      :E6 => 'Unable to update resource',
      :E7 => "Unable to process request, server responded with error",
      :E8 => "No such record",
      :E9 => "No such action / resource",
      :I3 => "Resource removed",
     :E10 => "Unable to remove resource"
    }
    
    def self.[](code)
      CODES_MAP[code]
    end
    
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ourkudos-0.0.38 lib/ourkudos/server/response_codes.rb
ourkudos-0.0.37 lib/ourkudos/server/response_codes.rb
ourkudos-0.0.34 lib/ourkudos/server/response_codes.rb
ourkudos-0.0.33 lib/ourkudos/server/response_codes.rb
ourkudos-0.0.31 lib/ourkudos/server/response_codes.rb
ourkudos-0.0.30 lib/ourkudos/server/response_codes.rb
ourkudos-0.0.29 lib/ourkudos/response_codes.rb