Created
November 10, 2016 11:23
-
-
Save sergeyryabov/a9e9a159321bb4d13a6c850e9fd2793e to your computer and use it in GitHub Desktop.
This file contains 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 ServiceObject | |
def initialize(arg1, arg2) | |
@arg1 = arg1 | |
@arg2 = arg2 | |
end | |
def perform | |
# some logic | |
# ... | |
private_method_with_logic | |
end | |
private | |
def private_method_with_logic | |
# some logic | |
end | |
end | |
ServiceObject.new(arg1, arg2).perform |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment