lib/slosilo/adapters/mock_adapter.rb in slosilo-0.0.0 vs lib/slosilo/adapters/mock_adapter.rb in slosilo-0.1.2
- old
+ new
@@ -1,21 +1,8 @@
module Slosilo
module Adapters
class MockAdapter < Hash
- def initialize
- @fp = {}
- end
-
- def put_key id, key
- @fp[key.fingerprint] = id
- self[id] = key
- end
-
+ alias :put_key :[]=
alias :get_key :[]
-
- def get_by_fingerprint fp
- id = @fp[fp]
- [self[id], id]
- end
end
end
end