lib/key_vortex.rb in key-vortex-0.1.1 vs lib/key_vortex.rb in key-vortex-0.1.2
- old
+ new
@@ -2,7 +2,19 @@
require_relative "key_vortex/version"
class KeyVortex
class Error < StandardError; end
- # Your code goes here...
+
+ def initialize(adapter, record_class)
+ @adapter = adapter
+ @record_class = record_class
+ end
+
+ def save(record)
+ @adapter.save(record)
+ end
+
+ def find(id)
+ @adapter.find(id)
+ end
end