Class: INWX
Overview
Wrapper for the INWX XMLRPC Client
Instance Method Summary collapse
- #call(object, method, params = {}) ⇒ Object
-
#initialize ⇒ INWX
constructor
A new instance of INWX.
Constructor Details
#initialize ⇒ INWX
Returns a new instance of INWX.
11 12 13 14 15 16 |
# File 'lib/inwx.rb', line 11 def initialize # Create a new client instance @client = XMLRPC::Client.new( CONFIG[:inwx_api], '/xmlrpc/', '443', nil, nil, nil, nil, true, 100 ) end |
Instance Method Details
#call(object, method, params = {}) ⇒ Object
18 19 20 |
# File 'lib/inwx.rb', line 18 def call(object, method, params = {}) @client.call("#{object}.#{method}", params) end |