Class: RoboPigeon::Jira::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/robopigeon/jira/client.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_keyObject

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_urlObject

Returns the value of attribute api_url.



9
10
11
# File 'lib/robopigeon/jira/client.rb', line 9

def api_url
  @api_url
end

.enabledObject

Returns the value of attribute enabled.



9
10
11
# File 'lib/robopigeon/jira/client.rb', line 9

def enabled
  @enabled
end

.last_created_ticketObject

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_timeoutObject

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_requestObject



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