Class: Retort::Service

Inherits:
Object
  • Object
show all
Defined in:
lib/retort/service.rb

Class Method Summary collapse

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

Yields:

  • (config)


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

.serviceObject

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