lib/commercelayer/client.rb in commercelayer-0.5.0 vs lib/commercelayer/client.rb in commercelayer-0.6.0

- old
+ new

@@ -6,13 +6,13 @@ def initialize(options={}) @client_id = options[:client_id] @client_secret = options[:client_secret] @scope = options[:scope] @site = options[:site] + Resource.site = "#{options[:site]}/api/" end def authorize! - Resource.site = @site + "/api/" Resource.authorize_with = get_access_token end private def get_access_token(options={})