Class: JiraIssues::JiraAdapter
- Inherits:
-
Object
- Object
- JiraIssues::JiraAdapter
- Defined in:
- lib/jira_issues/jira_adapter.rb
Instance Method Summary collapse
Instance Method Details
#available? ⇒ Boolean
10 11 12 13 |
# File 'lib/jira_issues/jira_adapter.rb', line 10 def available? response = client.get('/') response.code == '200' end |
#create_task(task) ⇒ Object
5 6 7 8 |
# File 'lib/jira_issues/jira_adapter.rb', line 5 def create_task(task) issue = client.Issue.build issue.save(task.print) end |
#jql(jql_query, fields) ⇒ Object
15 16 17 |
# File 'lib/jira_issues/jira_adapter.rb', line 15 def jql(jql_query, fields) client.Issue.jql(jql_query, fields) end |