Class: Jira::LegacyAPI

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

Constant Summary collapse

TYPES =
[
  :rest,
  :agile
].freeze
ENDPOINTS =
{
  rest:  'rest/api/2',
  agile: 'rest/greenhopper/latest'
}.freeze

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ LegacyAPI

Initialize Jira::API

Parameters:

  • type (Symbol)


21
22
23
24
25
26
27
# File 'lib/jira/legacy_api.rb', line 21

def initialize(type)
  @type = type
  @client = Faraday.new
  @client.basic_auth(Jira::Core.username, Jira::Core.password)

  self.define_actions
end