Sha256: fb0edbfbf206a430669c713f746441c11cfe65c43ce38359ba70f6d535103335

Contents?: true

Size: 378 Bytes

Versions: 5

Compression:

Stored size: 378 Bytes

Contents

require_relative 'storage'

module Vedeu
  module Repository
    def adaptor
      @adaptor ||= Storage.new
    end

    def all
      adaptor.all(entity)
    end

    def query(entity, attribute, value)
      adaptor.query(entity, attribute, value)
    end

    def create(model)
      adaptor.create(model)
    end

    def reset
      adaptor.reset(entity)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vedeu-0.0.38 lib/vedeu/repository/repository.rb
vedeu-0.0.37 lib/vedeu/repository/repository.rb
vedeu-0.0.36 lib/vedeu/repository/repository.rb
vedeu-0.0.35 lib/vedeu/repository/repository.rb
vedeu-0.0.34 lib/vedeu/repository/repository.rb