Module: PivotalTracker::API::Authentication

Included in:
Console
Defined in:
lib/pivotal-tracker-console/authentication.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
# File 'lib/pivotal-tracker-console/authentication.rb', line 4

def self.included(base)
  base.send :extend, self
end

Instance Method Details

#authenticate_by_tokenObject



8
9
10
# File 'lib/pivotal-tracker-console/authentication.rb', line 8

def authenticate_by_token
  Client.token = Setup::API::Authentication.token if Setup::API::Authentication.has_token?
end