Class: Jira::API

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

Instance Method Summary collapse

Instance Method Details

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



22
23
24
25
# File 'lib/jira/api.rb', line 22

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

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



7
8
9
10
# File 'lib/jira/api.rb', line 7

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

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



17
18
19
20
# File 'lib/jira/api.rb', line 17

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

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



12
13
14
15
# File 'lib/jira/api.rb', line 12

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