Class: Jira::ApiConsumer
- Inherits:
-
Object
- Object
- Jira::ApiConsumer
- Defined in:
- lib/jira.rb
Instance Method Summary collapse
- #configure!(url, username, password, api_version = 'latest') ⇒ Object
- #create_issue(jira_story) ⇒ Object
Instance Method Details
#configure!(url, username, password, api_version = 'latest') ⇒ Object
61 62 63 64 65 66 |
# File 'lib/jira.rb', line 61 def configure!(url, username, password, api_version = 'latest') @url = url @username = username @password = password @api_version = api_version end |
#create_issue(jira_story) ⇒ Object
68 69 70 71 |
# File 'lib/jira.rb', line 68 def create_issue(jira_story) response = post(url, jira_story.to_json, headers) return response.success?, response.body end |