Sha256: 263f1328ee96c73538e5036023027a1009f287f860b555aabda7c213ebe90735

Contents?: true

Size: 243 Bytes

Versions: 23

Compression:

Stored size: 243 Bytes

Contents

class UsersRepository
  include SmartIoC::Iocify

  bean :repository

  inject :users_creator # just for testing purposes (circular load check)
  inject :dao

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

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

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
smart_ioc-0.2.5 spec/smart_ioc/example/users/repository/users_repository.rb
smart_ioc-0.2.4 spec/smart_ioc/example/users/repository/users_repository.rb
smart_ioc-0.2.3 spec/smart_ioc/example/users/repository/users_repository.rb
smart_ioc-0.2.2 spec/smart_ioc/example/users/repository/users_repository.rb
smart_ioc-0.2.1 spec/smart_ioc/example/users/repository/users_repository.rb
smart_ioc-0.2.0 spec/smart_ioc/example/users/repository/users_repository.rb
smart_ioc-0.1.30 spec/smart_ioc/example/users/repository/users_repository.rb
smart_ioc-0.1.29 spec/smart_ioc/example/users/repository/users_repository.rb
smart_ioc-0.1.28 spec/smart_ioc/example/users/repository/users_repository.rb
smart_ioc-0.1.27 spec/smart_ioc/example/users/repository/users_repository.rb
smart_ioc-0.1.26 spec/smart_ioc/example/users/repository/users_repository.rb
smart_ioc-0.1.25 spec/smart_ioc/example/users/repository/users_repository.rb
smart_ioc-0.1.24 spec/smart_ioc/example/users/repository/users_repository.rb
smart_ioc-0.1.23 spec/smart_ioc/example/users/repository/users_repository.rb
smart_ioc-0.1.22 spec/smart_ioc/example/users/repository/users_repository.rb
smart_ioc-0.1.21 spec/smart_ioc/example/users/repository/users_repository.rb
smart_ioc-0.1.20 spec/smart_ioc/example/users/repository/users_repository.rb
smart_ioc-0.1.19 spec/smart_ioc/example/users/repository/users_repository.rb
smart_ioc-0.1.18 spec/smart_ioc/example/users/repository/users_repository.rb
smart_ioc-0.1.17 spec/smart_ioc/example/users/repository/users_repository.rb