Skip to content

Instantly share code, notes, and snippets.

@ryenski
Created June 27, 2017 17:34
Show Gist options
  • Save ryenski/d2cc7a4db95a1daa792d51a2cab003b0 to your computer and use it in GitHub Desktop.
Save ryenski/d2cc7a4db95a1daa792d51a2cab003b0 to your computer and use it in GitHub Desktop.
Initializing a service object.
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