Skip to content

Instantly share code, notes, and snippets.

@sergeyryabov
Created November 10, 2016 11:23
Show Gist options
  • Save sergeyryabov/a9e9a159321bb4d13a6c850e9fd2793e to your computer and use it in GitHub Desktop.
Save sergeyryabov/a9e9a159321bb4d13a6c850e9fd2793e to your computer and use it in GitHub Desktop.
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