Sha256: d8d54a3cf36baa69812e53247311a5aaf2c4b2bc29808847f49a0e501d6e9e9d
Contents?: true
Size: 392 Bytes
Versions: 1
Compression:
Stored size: 392 Bytes
Contents
class UserCreator attr_reader :user def initialize(email:, name:, password: SecureRandom.uuid) @user = User.new(email: email, name: name, password: password) end def create if user.save UserInvitor.call(user) end user end def self.create(email:, name:, password: SecureRandom.uuid) new(email: email, name: name, password: password).create end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
self_systeem-0.1.0 | test/dummy_app/app/services/user_creator.rb |