Created
March 1, 2018 10:28
-
-
Save anonymous/1ccef4d3c0312633ab81b860f89cf00c 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 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