Class: INWX

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/inwx.rb

Overview

Wrapper for the INWX XMLRPC Client

Instance Method Summary collapse

Constructor Details

#initializeINWX

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