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
280 281 282 |
# File 'lib/gergich.rb', line 280 def get(url, = {}) perform(:get, url, ) end |
.post(url, body, options = {}) ⇒ Object
284 285 286 |
# File 'lib/gergich.rb', line 284 def post(url, body, = {}) perform(:post, url, .merge(body: body)) end |
.put(url, body, options = {}) ⇒ Object
288 289 290 |
# File 'lib/gergich.rb', line 288 def put(url, body, = {}) perform(:put, url, .merge(body: body)) end |