Permalink
Browse files

Moved Unauthorized error further down to make VERSION more prominent.

  • Loading branch information...
Mat Schaffer
Mat Schaffer committed May 25, 2008
1 parent ce0feec commit 7df560a69545bcad18f8214a8b2f956dd75e81e8
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/tickspot.rb
View
@@ -5,12 +5,6 @@
require File.dirname(__FILE__) + '/tickspot_entry'
class Tickspot
- class Unauthorized < RuntimeError
- def message
- "You are not authorized to perform this action. If your login information is correct, you may be calling at admin-only action. See http://tickspot.com/api/ for more information."
- end
- end
-
VERSION = '0.1.0'
def initialize(domain, email, password)
@@ -39,6 +33,12 @@ def entries(start_date, end_date, params={})
te.empty? ? [] : te.entries
end
+ class Unauthorized < RuntimeError
+ def message
+ "You are not authorized to perform this action. If your login information is correct, you may be calling at admin-only action. See http://tickspot.com/api/ for more information."
+ end
+ end
+
private
def request(path, params={})
request = Net::HTTP::Post.new("/api/" + path)

0 comments on commit 7df560a

Please sign in to comment.