Module: Datagraph::Client

Included in:
Command
Defined in:
lib/datagraph/client.rb

Overview

Datagraph.org API client library.

Class Method Summary (collapse)

Class Method Details

+ (XMLRPC::Client) rpc

Returns a Datagraph.org RPC API client.

Returns:

  • (XMLRPC::Client)


9
10
11
12
# File 'lib/datagraph/client.rb', line 9

def self.rpc
  require 'xmlrpc/client' unless defined?(XMLRPC::Client)
  XMLRPC::Client.new2(Datagraph::URL.join('rpc')) # defaults to XML-RPC for now
end