Created
June 27, 2017 17:34
-
-
Save ryenski/d2cc7a4db95a1daa792d51a2cab003b0 to your computer and use it in GitHub Desktop.
Initializing a service object.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UserCreator | |
def initialize(params) | |
@user = User.new(params) | |
end | |
private | |
attr_reader :user | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment