Skip to content

Instantly share code, notes, and snippets.

@caalberts
Last active October 25, 2017 02:37
Show Gist options
  • Save caalberts/098a60906b02aafd0f6729b28e76cddf to your computer and use it in GitHub Desktop.
Save caalberts/098a60906b02aafd0f6729b28e76cddf to your computer and use it in GitHub Desktop.
class Service
def initialize(dependency)
@dependency = dependency
end
def exec()
{
success: true,
data: @dependency.call()
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment