Class: Retort::Service
- Inherits:
-
Object
- Object
- Retort::Service
- Defined in:
- lib/retort/service.rb
Class Method Summary collapse
- .call(*args) ⇒ Object
- .configure {|config| ... } ⇒ Object
-
.service ⇒ Object
by default, if configure hasn’t been call the url will be defaulted to localhost/RPC2.
Class Method Details
.call(*args) ⇒ Object
23 24 25 |
# File 'lib/retort/service.rb', line 23 def call(*args) service.call_async *args end |
.configure {|config| ... } ⇒ Object
11 12 13 14 15 |
# File 'lib/retort/service.rb', line 11 def configure config = Config.new yield config @@service = XMLRPC::Client.new2(config.url) end |
.service ⇒ Object
by default, if configure hasn’t been call the url will be defaulted to localhost/RPC2
19 20 21 |
# File 'lib/retort/service.rb', line 19 def service @@service ||= XMLRPC::Client.new2("http://elijah/RPC2") end |