Skip to content

Instantly share code, notes, and snippets.

Created March 1, 2018 10:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1ccef4d3c0312633ab81b860f89cf00c to your computer and use it in GitHub Desktop.
Save anonymous/1ccef4d3c0312633ab81b860f89cf00c to your computer and use it in GitHub Desktop.
class SomeService
class << self
def method_missing(name, *args)
some_service.send name, *args
end
private
def some_service
@service ||= RPC::JSON::Client.new(Setting["rpc_connection_params"], 1.1)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment