Class: RedmineClient::Base
- Inherits:
-
ActiveResource::Base
- Object
- ActiveResource::Base
- RedmineClient::Base
- Defined in:
- lib/redmine_client/base.rb
Class Method Summary collapse
- .configure(&block) ⇒ Object
-
.token=(val) ⇒ Object
Get your API key at “My account” page.
Class Method Details
.configure(&block) ⇒ Object
5 6 7 |
# File 'lib/redmine_client/base.rb', line 5 def configure(&block) instance_eval &block end |
.token=(val) ⇒ Object
Get your API key at “My account” page
10 11 12 13 14 15 16 |
# File 'lib/redmine_client/base.rb', line 10 def token= val if val (descendants + [self]).each do |resource| resource.headers['X-Redmine-API-Key'] = val end end end |