Sha256: 1d9bcb1aa0cf0dc96f2330dd84c613e37bef5c59b5fea2938469307bcc581c4c

Contents?: true

Size: 242 Bytes

Versions: 35

Compression:

Stored size: 242 Bytes

Contents

require_relative '../user'

class UsersCreator
  include SmartIoC::Iocify

  bean :users_creator

  inject :repository, from: :admins
  inject :logger

  def create(id, email)
    user = User.new(id, email)
    repository.put(user)
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
smart_ioc-0.5.2 spec/smart_ioc/example/users/services/users_creator.rb
smart_ioc-0.5.1 spec/smart_ioc/example/users/services/users_creator.rb
smart_ioc-0.5.0 spec/smart_ioc/example/users/services/users_creator.rb
smart_ioc-0.3.9 spec/smart_ioc/example/users/services/users_creator.rb
smart_ioc-0.4.0 spec/smart_ioc/example/users/services/users_creator.rb
smart_ioc-0.3.8 spec/smart_ioc/example/users/services/users_creator.rb
smart_ioc-0.3.7 spec/smart_ioc/example/users/services/users_creator.rb
smart_ioc-0.3.6 spec/smart_ioc/example/users/services/users_creator.rb
smart_ioc-0.3.5 spec/smart_ioc/example/users/services/users_creator.rb
smart_ioc-0.3.2 spec/smart_ioc/example/users/services/users_creator.rb
smart_ioc-0.3.1 spec/smart_ioc/example/users/services/users_creator.rb
smart_ioc-0.3.0 spec/smart_ioc/example/users/services/users_creator.rb
smart_ioc-0.2.5 spec/smart_ioc/example/users/services/users_creator.rb
smart_ioc-0.2.4 spec/smart_ioc/example/users/services/users_creator.rb
smart_ioc-0.2.3 spec/smart_ioc/example/users/services/users_creator.rb
smart_ioc-0.2.2 spec/smart_ioc/example/users/services/users_creator.rb
smart_ioc-0.2.1 spec/smart_ioc/example/users/services/users_creator.rb
smart_ioc-0.2.0 spec/smart_ioc/example/users/services/users_creator.rb
smart_ioc-0.1.30 spec/smart_ioc/example/users/services/users_creator.rb
smart_ioc-0.1.29 spec/smart_ioc/example/users/services/users_creator.rb