Skip to content

Instantly share code, notes, and snippets.

@SwamiRama
Created June 1, 2016 07:55
Show Gist options
  • Save SwamiRama/3ebfb639c3ec1fc0fd6fe7d4e45d66be to your computer and use it in GitHub Desktop.
Save SwamiRama/3ebfb639c3ec1fc0fd6fe7d4e45d66be to your computer and use it in GitHub Desktop.
Create a service class
class TestClass
class << self
def perform(a:, b:)
instance = new(a, b)
instance.perform
end
end
def initialize(a:, b:)
end
def perform
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment