Module: RedmineAPI

Defined in:
lib/redmine/redmine-api.rb

Defined Under Namespace

Classes: Base, Error, Issue, Project

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.tokenObject (readonly)

Returns the value of attribute token.



10
11
12
# File 'lib/redmine/redmine-api.rb', line 10

def token
  @token
end

Class Method Details

.authenticate(server, token) ⇒ Object



11
12
13
14
15
# File 'lib/redmine/redmine-api.rb', line 11

def authenticate(server, token)
  @token = token
  @server = server
  self::Base.site = server
end

.resourcesObject



17
18
19
# File 'lib/redmine/redmine-api.rb', line 17

def resources
  @resources ||= []
end