lib/rev-api.rb in rev-api-2.3.0 vs lib/rev-api.rb in rev-api-2.3.1

- old
+ new

@@ -1,26 +1,26 @@ -require 'httparty' - -# These three are the only classes that should be accessed directly -require 'rev-api/api' - -module Rev - class << self - # Alias for Rev::Api.new - # - # @return [Rev::Api] - def new(client_api_key, user_api_key, host) - Rev::Api.new(client_api_key, user_api_key, host) - end - - # Delegate to Rev::Api - # - def method_missing(method, *args, &block) - return super unless new.respond_to?(method) - new.send(method, *args, &block) - end - - def respond_to?(method, include_private = false) - new.respond_to?(method, include_private) || super(method, include_private) - end - end -end +require 'httparty' + +# These three are the only classes that should be accessed directly +require 'rev-api/api' + +module Rev + class << self + # Alias for Rev::Api.new + # + # @return [Rev::Api] + def new(client_api_key, user_api_key, host) + Rev::Api.new(client_api_key, user_api_key, host) + end + + # Delegate to Rev::Api + # + def method_missing(method, *args, &block) + return super unless new.respond_to?(method) + new.send(method, *args, &block) + end + + def respond_to?(method, include_private = false) + new.respond_to?(method, include_private) || super(method, include_private) + end + end +end