Sha256: eb6a1bd192d06f593da75bd1976f3061071e5e7eee42b24954a488a60559ad8a

Contents?: true

Size: 219 Bytes

Versions: 4

Compression:

Stored size: 219 Bytes

Contents

class AdminsRepository
  include SmartIoC::Iocify

  bean :repository

  inject :dao
  inject :users_creator

  public :users_creator

  def put(user)
    dao.insert(user)
  end

  def get(id)
    dao.get(id)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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