Class: Jira::API

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

Direct Known Subclasses

AuthAPI, SprintAPI

Instance Method Summary collapse

Instance Method Details

#delete(path, options = {}) ⇒ Object



19
20
21
22
# File 'lib/jira/api.rb', line 19

def delete(path, options={})
  response = client.delete(path, options[:params] || {}, headers)
  process(response, options)
end

#get(path, options = {}) ⇒ Object



4
5
6
7
# File 'lib/jira/api.rb', line 4

def get(path, options={})
  response = client.get(path, options[:params] || {}, headers)
  process(response, options)
end

#patch(path, options = {}) ⇒ Object



14
15
16
17
# File 'lib/jira/api.rb', line 14

def patch(path, options={})
  response = client.put(path, options[:params] || {}, headers)
  process(response, options)
end

#post(path, options = {}) ⇒ Object



9
10
11
12
# File 'lib/jira/api.rb', line 9

def post(path, options={})
  response = client.post(path, options[:params] || {}, headers)
  process(response, options)
end