Skip to content

Commit

Permalink
Moved Unauthorized error further down to make VERSION more prominent.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mat Schaffer committed May 25, 2008
1 parent ce0feec commit 7df560a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/tickspot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 7df560a

Please sign in to comment.