Sha256: 1b847f4bf6cc94c67579ea89a034f8bc7c0760c36d0795bf3a640c355b2509a2

Contents?: true

Size: 551 Bytes

Versions: 16

Compression:

Stored size: 551 Bytes

Contents

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ourkudos-0.0.21 lib/ourkudos/response_codes.rb
ourkudos-0.0.19 lib/ourkudos/response_codes.rb
ourkudos-0.0.18 lib/ourkudos/response_codes.rb
ourkudos-0.0.17 lib/ourkudos/response_codes.rb
ourkudos-0.0.16 lib/ourkudos/response_codes.rb
ourkudos-0.0.15 lib/ourkudos/response_codes.rb
ourkudos-0.0.12 lib/ourkudos/response_codes.rb
ourkudos-0.0.11 lib/ourkudos/response_codes.rb
ourkudos-0.0.10 lib/ourkudos/response_codes.rb
ourkudos-0.0.9 lib/ourkudos/response_codes.rb
ourkudos-0.0.8 lib/ourkudos/response_codes.rb
ourkudos-0.0.7 lib/ourkudos/response_codes.rb
ourkudos-0.0.6 lib/ourkudos/response_codes.rb
ourkudos-0.0.5 lib/ourkudos/response_codes.rb
ourkudos-0.0.3 lib/ourkudos/response_codes.rb
ourkudos-0.0.2 lib/ourkudos/response_codes.rb