lib/her/api.rb in her-0.5.1 vs lib/her/api.rb in her-0.5.2

- old
+ new

@@ -5,12 +5,12 @@ # @private attr_reader :base_uri, :connection, :options # Setup a default API connection. Accepted arguments and options are the same as {API#setup}. def self.setup(attrs={}, &block) - @@default_api = new - @@default_api.setup(attrs, &block) + @default_api = new + @default_api.setup(attrs, &block) end # Create a new API object. This is useful to create multiple APIs and use them with the `uses_api` method. # If your application uses only one API, you should use Her::API.setup to configure the default API # @@ -101,9 +101,9 @@ end private # @private def self.default_api(attrs={}) - defined?(@@default_api) ? @@default_api : nil + defined?(@default_api) ? @default_api : nil end end end