Class: Jira::API
- Inherits:
-
Object
- Object
- Jira::API
- Defined in:
- lib/jira/api.rb
Instance Method Summary collapse
- #delete(path, options = {}) ⇒ Object
- #get(path, options = {}) ⇒ Object
- #patch(path, options = {}) ⇒ Object
- #post(path, options = {}) ⇒ Object
Instance Method Details
#delete(path, options = {}) ⇒ Object
22 23 24 25 |
# File 'lib/jira/api.rb', line 22 def delete(path, ={}) response = client.delete(path, [:params] || {}, headers) process(response, ) end |
#get(path, options = {}) ⇒ Object
7 8 9 10 |
# File 'lib/jira/api.rb', line 7 def get(path, ={}) response = client.get(path, [:params] || {}, headers) process(response, ) end |
#patch(path, options = {}) ⇒ Object
17 18 19 20 |
# File 'lib/jira/api.rb', line 17 def patch(path, ={}) response = client.put(path, [:params] || {}, headers) process(response, ) end |
#post(path, options = {}) ⇒ Object
12 13 14 15 |
# File 'lib/jira/api.rb', line 12 def post(path, ={}) response = client.post(path, [:params] || {}, headers) process(response, ) end |