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
19 20 21 22 |
# File 'lib/jira/api.rb', line 19 def delete(path, ={}) response = client.delete(path, [:params] || {}, headers) process(response, ) end |
#get(path, options = {}) ⇒ Object
4 5 6 7 |
# File 'lib/jira/api.rb', line 4 def get(path, ={}) response = client.get(path, [:params] || {}, headers) process(response, ) end |
#patch(path, options = {}) ⇒ Object
14 15 16 17 |
# File 'lib/jira/api.rb', line 14 def patch(path, ={}) response = client.put(path, [:params] || {}, headers) process(response, ) end |
#post(path, options = {}) ⇒ Object
9 10 11 12 |
# File 'lib/jira/api.rb', line 9 def post(path, ={}) response = client.post(path, [:params] || {}, headers) process(response, ) end |