Class: Gergich::API

Inherits:
Object
  • Object
show all
Defined in:
lib/gergich.rb

Class Method Summary collapse

Class Method Details

.get(url, options = {}) ⇒ Object



286
287
288
# File 'lib/gergich.rb', line 286

def get(url, options = {})
  perform(:get, url, options)
end

.post(url, body, options = {}) ⇒ Object



290
291
292
# File 'lib/gergich.rb', line 290

def post(url, body, options = {})
  perform(:post, url, options.merge(body: body))
end

.put(url, body, options = {}) ⇒ Object



294
295
296
# File 'lib/gergich.rb', line 294

def put(url, body, options = {})
  perform(:put, url, options.merge(body: body))
end