class PivotalSync::Client
Attributes
token[W]
Public Class Methods
clear_connections()
click to toggle source
# File lib/pivotal_sync/client.rb, line 19 def clear_connections @connections = nil end
connection()
click to toggle source
# File lib/pivotal_sync/client.rb, line 9 def connection raise NoToken if @token.to_s.empty? @connections ||= {} @connections[@token] ||= RestClient::Resource.new("#{tracker_url}#{api_path}", :headers => { "X-TrackerToken" => @token, "Content-Type" => "application/xml" }) end
Protected Class Methods
api_path()
click to toggle source
# File lib/pivotal_sync/client.rb, line 29 def api_path "/services/v4/" end
tracker_url()
click to toggle source
# File lib/pivotal_sync/client.rb, line 25 def tracker_url "https://www.pivotaltracker.com" end