Bogus example for 16.4?
This commit is contained in:
parent
b68f6c759d
commit
b01c682613
10
cookbook/016/04.rb
Normal file
10
cookbook/016/04.rb
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
require 'soap/rpc/driver'
|
||||||
|
|
||||||
|
# doesn't work (service no longer available?)
|
||||||
|
driver = SOAP::RPC::Driver.new(
|
||||||
|
'http://services.xmethods.net/soap/', 'url:xmethods-delayed-quotes'
|
||||||
|
)
|
||||||
|
|
||||||
|
driver.add_method('getQuote', 'symbol')
|
||||||
|
|
||||||
|
puts 'Stock price: %.2f' % driver.getQuote(ARGV.first)
|
Loading…
Reference in New Issue
Block a user