Module: Taiga
- Defined in:
- lib/taiga.rb,
lib/taiga/version.rb
Defined Under Namespace
Classes: Auth, FlexiBase, Milestone, Project, Task, UserStory
Constant Summary collapse
- VERSION =
'0.2.0'
Class Attribute Summary collapse
-
.api_url ⇒ Object
Returns the value of attribute api_url.
-
.auth_token ⇒ Object
Returns the value of attribute auth_token.
Class Method Summary collapse
Class Attribute Details
.api_url ⇒ Object
Returns the value of attribute api_url.
79 80 81 |
# File 'lib/taiga.rb', line 79 def api_url @api_url end |
.auth_token ⇒ Object
Returns the value of attribute auth_token.
79 80 81 |
# File 'lib/taiga.rb', line 79 def auth_token @auth_token end |
Class Method Details
.authenticate(username:, password:) ⇒ Object
81 82 83 84 85 86 |
# File 'lib/taiga.rb', line 81 def authenticate(username:, password:) user_auth_detail = Taiga::Auth.login username: username, password: password, type: 'normal' self.auth_token = user_auth_detail.auth_token user_auth_detail end |