lib/uwaterlooapi.rb in uwaterlooapi-0.0.3 vs lib/uwaterlooapi.rb in uwaterlooapi-0.0.4

- old
+ new

@@ -1,16 +1,16 @@ require 'httparty' -require 'helpers/routes' -require 'helpers/uwaterlooapi_query' +require 'uwaterlooapi/version' +require 'uwaterlooapi/routes' +require 'uwaterlooapi/query' class UWaterlooAPI - VERSION = '0.0.1' - include Routes + include UWaterlooAPI::Routes def initialize(api_key) get_base_routes.each do |route| self.class.send :define_method, route do - UWaterlooAPIQuery.new "/#{route}", "/#{route}", api_key + UWaterlooAPI::Query.new "/#{route}", "/#{route}", api_key end end end private