Class: Gergich::API

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

Class Method Summary collapse

Class Method Details

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



274
275
276
# File 'lib/gergich.rb', line 274

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

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



278
279
280
# File 'lib/gergich.rb', line 278

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

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



282
283
284
# File 'lib/gergich.rb', line 282

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