Sha256: 1522fdf531288d0bf1c02ed95c50936c094b67d9043acaf51e955ebc528b4019

Contents?: true

Size: 258 Bytes

Versions: 17

Compression:

Stored size: 258 Bytes

Contents

class AdminsDAO
  include SmartIoC::Iocify

  bean :dao, instance: false

  inject :config

  @data = {}

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

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
smart_ioc-0.1.30 spec/smart_ioc/example/admins/repository/admins_dao.rb
smart_ioc-0.1.29 spec/smart_ioc/example/admins/repository/admins_dao.rb
smart_ioc-0.1.28 spec/smart_ioc/example/admins/repository/admins_dao.rb
smart_ioc-0.1.27 spec/smart_ioc/example/admins/repository/admins_dao.rb
smart_ioc-0.1.26 spec/smart_ioc/example/admins/repository/admins_dao.rb
smart_ioc-0.1.25 spec/smart_ioc/example/admins/repository/admins_dao.rb
smart_ioc-0.1.24 spec/smart_ioc/example/admins/repository/admins_dao.rb
smart_ioc-0.1.23 spec/smart_ioc/example/admins/repository/admins_dao.rb
smart_ioc-0.1.22 spec/smart_ioc/example/admins/repository/admins_dao.rb
smart_ioc-0.1.21 spec/smart_ioc/example/admins/repository/admins_dao.rb
smart_ioc-0.1.20 spec/smart_ioc/example/admins/repository/admins_dao.rb
smart_ioc-0.1.19 spec/smart_ioc/example/admins/repository/admins_dao.rb
smart_ioc-0.1.18 spec/smart_ioc/example/admins/repository/admins_dao.rb
smart_ioc-0.1.17 spec/smart_ioc/example/admins/repository/admins_dao.rb
smart_ioc-0.1.16 spec/smart_ioc/example/admins/repository/admins_dao.rb
smart_ioc-0.1.14 spec/smart_ioc/example/admins/repository/admins_dao.rb
smart_ioc-0.1.13 spec/smart_ioc/example/admins/repository/admins_dao.rb