Class: Gergich::API
- Inherits:
-
Object
- Object
- Gergich::API
- Defined in:
- lib/gergich.rb
Class Method Summary collapse
- .get(url, options = {}) ⇒ Object
- .post(url, body, options = {}) ⇒ Object
- .put(url, body, options = {}) ⇒ Object
Class Method Details
.get(url, options = {}) ⇒ Object
286 287 288 |
# File 'lib/gergich.rb', line 286 def get(url, = {}) perform(:get, url, ) end |
.post(url, body, options = {}) ⇒ Object
290 291 292 |
# File 'lib/gergich.rb', line 290 def post(url, body, = {}) perform(:post, url, .merge(body: body)) end |
.put(url, body, options = {}) ⇒ Object
294 295 296 |
# File 'lib/gergich.rb', line 294 def put(url, body, = {}) perform(:put, url, .merge(body: body)) end |