Sha256: f1c62a102c3e04ae2db6326f1b1f931a84c96da2cc8aac28f8d2645507125520

Contents?: true

Size: 304 Bytes

Versions: 5

Compression:

Stored size: 304 Bytes

Contents

class AdminsDAO
  include SmartIoC::Iocify

  bean :dao, instance: false, 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

5 entries across 5 versions & 1 rubygems

Version Path
smart_ioc-0.4.0 spec/smart_ioc/example/admins/repository/admins_dao.rb
smart_ioc-0.3.5 spec/smart_ioc/example/admins/repository/admins_dao.rb
smart_ioc-0.3.2 spec/smart_ioc/example/admins/repository/admins_dao.rb
smart_ioc-0.3.1 spec/smart_ioc/example/admins/repository/admins_dao.rb
smart_ioc-0.3.0 spec/smart_ioc/example/admins/repository/admins_dao.rb