Class: Retort::Service

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

Class Method Summary collapse

Class Method Details

.call(*args) ⇒ Object



17
18
19
# File 'lib/retort/service.rb', line 17

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