lib/geo_certs.rb in geocerts-0.0.23 vs lib/geo_certs.rb in geocerts-0.0.24
- old
+ new
@@ -47,11 +47,26 @@
def self.sandbox?
@sandbox
end
+ def self.sandbox
+ @sandbox
+ end
+
+ def self.host=(value) #:nodoc:
+ @_host = value
+ end
+
def self.host
- sandbox? ? 'sandbox.geocerts.com' : 'www.geocerts.com'
+ case
+ when @_host
+ @_host
+ when sandbox?
+ 'sandbox.geocerts.com'
+ else
+ 'www.geocerts.com'
+ end
end
end
require 'geo_certs/api'