Sha256: 18f3e94364909ec5d3af2919e83f212072abc023da222d37a3d88cbc1e6c1d29

Contents?: true

Size: 263 Bytes

Versions: 12

Compression:

Stored size: 263 Bytes

Contents

class UsersDAO
  include SmartIoC::Iocify

  bean :dao, instance: false, after_init: :setup

  class << self
    def setup
      @data = {}
    end

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

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
smart_ioc-0.5.2 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.5.1 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.5.0 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.3.9 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.4.0 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.3.8 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.3.7 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.3.6 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.3.5 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.3.2 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.3.1 spec/smart_ioc/example/users/repository/users_dao.rb
smart_ioc-0.3.0 spec/smart_ioc/example/users/repository/users_dao.rb