lib/lookup.rb in lookup-0.3.0 vs lib/lookup.rb in lookup-0.3.1
- old
+ new
@@ -1,9 +1,10 @@
require 'rubygems'
require 'active_record'
-class APILookup
+require File.join(File.dirname(__FILE__), 'models')
+module APILookup
class << self
def update
require 'hpricot'
require 'net/http'
@@ -140,8 +141,6 @@
end
end
end
end
-end
-
-require File.join(File.dirname(__FILE__), 'models')
+end
\ No newline at end of file