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