Class: RoboPigeon::Jira::Client
- Inherits:
-
Object
- Object
- RoboPigeon::Jira::Client
- Defined in:
- lib/robopigeon/jira/client.rb
Class Attribute Summary collapse
-
.api_key ⇒ Object
Returns the value of attribute api_key.
-
.api_url ⇒ Object
Returns the value of attribute api_url.
-
.enabled ⇒ Object
Returns the value of attribute enabled.
-
.last_created_ticket ⇒ Object
Returns the value of attribute last_created_ticket.
-
.wait_for_state_timeout ⇒ Object
Returns the value of attribute wait_for_state_timeout.
Class Method Summary collapse
Class Attribute Details
.api_key ⇒ Object
Returns the value of attribute api_key.
9 10 11 |
# File 'lib/robopigeon/jira/client.rb', line 9 def api_key @api_key end |
.api_url ⇒ Object
Returns the value of attribute api_url.
9 10 11 |
# File 'lib/robopigeon/jira/client.rb', line 9 def api_url @api_url end |
.enabled ⇒ Object
Returns the value of attribute enabled.
9 10 11 |
# File 'lib/robopigeon/jira/client.rb', line 9 def enabled @enabled end |
.last_created_ticket ⇒ Object
Returns the value of attribute last_created_ticket.
9 10 11 |
# File 'lib/robopigeon/jira/client.rb', line 9 def last_created_ticket @last_created_ticket end |
.wait_for_state_timeout ⇒ Object
Returns the value of attribute wait_for_state_timeout.
9 10 11 |
# File 'lib/robopigeon/jira/client.rb', line 9 def wait_for_state_timeout @wait_for_state_timeout end |
Class Method Details
.jira_request ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/robopigeon/jira/client.rb', line 10 def jira_request Faraday.new(url: RoboPigeon::Jira::Client.api_url) do |faraday| faraday.adapter Faraday.default_adapter faraday.headers['Content-Type'] = 'application/json' faraday.headers['Authorization'] = 'Basic ' + RoboPigeon::Jira::Client.api_key end end |