Sha256: d09071047eba156a958b9386451ff02472ba2cdd38b0f43b9b40c2720f12f9e8

Contents?: true

Size: 356 Bytes

Versions: 1

Compression:

Stored size: 356 Bytes

Contents

module Kadmin
  module Auth
    class UserStore
      def initialize
        @store = {}
      end

      def get(email)
        return @store[email.downcase]
      end

      def set(email, user)
        @store[email.downcase] = user
      end

      def exists?(email)
        @store.key?(email.downcase)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kadmin-0.3.2 lib/kadmin/auth/user_store.rb