Sha256: 60011bd3a3b75007beb16ffb8a695977626cfae3e5feb2197ca39fcfd7c861d9

Contents?: true

Size: 217 Bytes

Versions: 23

Compression:

Stored size: 217 Bytes

Contents

class UsersDAO
  include SmartIoC::Iocify

  bean :dao, instance: false

  @data = {}

  class << self
    def insert(entity)
      @data[entity.id] = entity
    end

    def get(id)
      @data[id]
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
smart_ioc-0.2.5 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.2.4 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.2.3 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.2.2 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.2.1 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.2.0 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.1.30 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.1.29 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.1.28 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.1.27 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.1.26 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.1.25 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.1.24 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.1.23 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.1.22 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.1.21 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.1.20 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.1.19 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.1.18 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.1.17 spec/smart_ioc/example/users/repository/users_dao.rb