Sha256: 60c810f66b3c794b2f0230042204f3080c45a6562814bdc98f53bee7db208a58

Contents?: true

Size: 324 Bytes

Versions: 1

Compression:

Stored size: 324 Bytes

Contents

# frozen_string_literal: true

require_relative "key_vortex/version"

class KeyVortex
  class Error < StandardError; end

  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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
key-vortex-0.1.2 lib/key_vortex.rb