Class: RedmineAPI::Base

Inherits:
ActiveResource::Base
  • Object
show all
Defined in:
lib/redmine/redmine-api.rb

Direct Known Subclasses

Issue, Project

Class Method Summary collapse

Class Method Details

.headersObject



28
29
30
# File 'lib/redmine/redmine-api.rb', line 28

def self.headers
  {"X-Redmine-API-Key" => RedmineAPI.token}
end

.inherited(base) ⇒ Object



24
25
26
# File 'lib/redmine/redmine-api.rb', line 24

def self.inherited(base)
  RedmineAPI.resources << base
end