Class: BigMarkerClient::Base

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

Constant Summary collapse

DEFAULT_PER_PAGE_SIZE =
25

Class Method Summary collapse

Class Method Details

.delete(path, body = {}) ⇒ Object



20
21
22
# File 'lib/big_marker_client/base.rb', line 20

def delete(path, body = {})
  request(verb: :delete, path: path, params: body)
end

.get(path, params = {}) ⇒ Object



24
25
26
# File 'lib/big_marker_client/base.rb', line 24

def get(path, params = {})
  request(verb: :get, path: path, params: params)
end

.patch(path, body = {}) ⇒ Object



16
17
18
# File 'lib/big_marker_client/base.rb', line 16

def patch(path, body = {})
  request(verb: :patch, path: path, params: body)
end

.post(path, body = {}) ⇒ Object



8
9
10
# File 'lib/big_marker_client/base.rb', line 8

def post(path, body = {})
  request(verb: :post, path: path, params: body)
end

.put(path, body = {}) ⇒ Object



12
13
14
# File 'lib/big_marker_client/base.rb', line 12

def put(path, body = {})
  request(verb: :put, path: path, params: body)
end