Class: Taiga::FlexiBase

Inherits:
Flexirest::Base
  • Object
show all
Defined in:
lib/taiga.rb

Direct Known Subclasses

Milestone, Project, Task, UserStory

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.base_urlObject



9
10
11
# File 'lib/taiga.rb', line 9

def self.base_url
  Taiga.api_url
end

Instance Method Details

#disable_pagination(name, request) ⇒ Object



19
20
21
# File 'lib/taiga.rb', line 19

def disable_pagination(name, request)
  request.headers['x-disable-pagination'] = 'True' if name == :all
end

#set_bearer(_name, request) ⇒ Object



14
15
16
# File 'lib/taiga.rb', line 14

def set_bearer(_name, request)
  request.headers['Authorization'] = "Bearer #{Taiga.auth_token}"
end