lib/zerigo_dns.rb in zerigo_dns-1.5.1 vs lib/zerigo_dns.rb in zerigo_dns-1.5.2
- old
+ new
@@ -7,16 +7,16 @@
module DNS
class Base < ActiveResource::Base
class << self; attr_reader :secure end
-
+
@secure=true
self.site='https://ns.zerigo.com/api/1.1/'
self.user = 'test@example.com'
self.password = 'ca01ffae311a7854ea366b05cd02bd50'
self.timeout = 5 # timeout after 5 seconds
-
+ self.format = ActiveResource::Formats::XmlFormat
def self.secure=(bool)
@secure=bool
self.site = @secure ? 'https://ns.zerigo.com/api/1.1/' : 'http://ns.zerigo.com/api/1.1/'
end