Sha256: 18be27fdedc6ec92fa04ad9c31a50deb63e9eb1d62d2605f7681d01063839c0b

Contents?: true

Size: 244 Bytes

Versions: 7

Compression:

Stored size: 244 Bytes

Contents

bean :dao do
  after_init :setup

  inject :config

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

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
smart_ioc-0.5.2 spec/smart_ioc/example/admins/repository/admins_dao.rb
smart_ioc-0.5.1 spec/smart_ioc/example/admins/repository/admins_dao.rb
smart_ioc-0.5.0 spec/smart_ioc/example/admins/repository/admins_dao.rb
smart_ioc-0.3.9 spec/smart_ioc/example/admins/repository/admins_dao.rb
smart_ioc-0.3.8 spec/smart_ioc/example/admins/repository/admins_dao.rb
smart_ioc-0.3.7 spec/smart_ioc/example/admins/repository/admins_dao.rb
smart_ioc-0.3.6 spec/smart_ioc/example/admins/repository/admins_dao.rb