Sha256: 39599995cbb319ead237ab51bdf5adfb3814ede0c93a438b794e90ed6194a0d6

Contents?: true

Size: 470 Bytes

Versions: 5

Compression:

Stored size: 470 Bytes

Contents

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

    def find(name)
      adaptor.find(entity, name)
    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 delete(model)
      adaptor.delete(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.25 lib/vedeu/repository/repository.rb
vedeu-0.0.24 lib/vedeu/repository/repository.rb
vedeu-0.0.23 lib/vedeu/repository/repository.rb
vedeu-0.0.22 lib/vedeu/repository/repository.rb
vedeu-0.0.21 lib/vedeu/repository/repository.rb