lib/loopiator/client.rb in loopiator-0.3.8 vs lib/loopiator/client.rb in loopiator-0.4.0
- old
+ new
@@ -1,6 +1,7 @@
require 'xmlrpc/client'
+require File.join(File.dirname(__FILE__), 'patch') # Needed to convert <i4> to <int> - Loopia's XML RPC server won't accept <i4> as a valid method signature
require 'simpleidn'
module Loopiator
class Client
attr_accessor :client
@@ -48,10 +49,11 @@
return response
end
end
include Loopiator::Domains
+ include Loopiator::Dns
include Loopiator::Credits
private
def generate_connection_options(connection_options = {})
default_options = {
@@ -92,6 +94,6 @@
self.client.instance_variable_get(:@http).instance_variable_set(:@proxy_user, proxy_user) if (proxy_user && !proxy_user.empty?)
self.client.instance_variable_get(:@http).instance_variable_set(:@proxy_pass, proxy_password) if (proxy_password && !proxy_password.empty?)
end
end
-end
\ No newline at end of file
+end