Class: Juno::Resource
- Inherits:
-
Object
- Object
- Juno::Resource
- Defined in:
- lib/juno/resource.rb
Class Method Summary collapse
- .delete(path) ⇒ Object
- .get(path) ⇒ Object
- .patch(path, body) ⇒ Object
- .post(path, body) ⇒ Object
- .put(path, body = {}) ⇒ Object
Class Method Details
.delete(path) ⇒ Object
20 21 22 |
# File 'lib/juno/resource.rb', line 20 def delete(path) req(:delete, path) end |
.get(path) ⇒ Object
16 17 18 |
# File 'lib/juno/resource.rb', line 16 def get(path) req(:get, path) end |
.patch(path, body) ⇒ Object
12 13 14 |
# File 'lib/juno/resource.rb', line 12 def patch(path, body) req(:patch, path, body) end |
.post(path, body) ⇒ Object
8 9 10 |
# File 'lib/juno/resource.rb', line 8 def post(path, body) req(:post, path, body) end |
.put(path, body = {}) ⇒ Object
24 25 26 |
# File 'lib/juno/resource.rb', line 24 def put(path, body = {}) req(:put, path, body) end |