Created
May 11, 2011 05:28
-
-
Save karlbright/965973 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def connection(options={}) | |
raise NoToken unless @token.present? | |
@connections ||= {} | |
@connections[@token] ||= RestClient::Resource.new(\ | |
"#{protocol}://www.pivotaltracker.com/services/v3", \ | |
:headers => {'X-TrackerToken' => @token, 'Content-Type' => 'application/xml'}) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment