lib/sqoot.rb in sqoot-0.0.1 vs lib/sqoot.rb in sqoot-1.0.0
- old
+ new
@@ -6,17 +6,22 @@
directory = File.expand_path(File.dirname(__FILE__))
module Sqoot
class << self
- attr_accessor :affiliate_token, :authentication_token
+ attr_accessor :affiliate_token, :authentication_token, :api_url
# Configure default credentials easily
#
- # @yield [affiliate_key, authentication_token]
+ # @yield [Sqoot]
def configure
+ load_defaults
yield self
true
+ end
+
+ def load_defaults
+ self.api_url ||= "http://api.sqoot.com/v1"
end
end
end