Class: Zspay::Resource
- Inherits:
-
Object
show all
- Defined in:
- lib/zspay/resource.rb
Class Method Summary
collapse
Class Method Details
.delete(path) ⇒ Object
18
19
20
|
# File 'lib/zspay/resource.rb', line 18
def delete(path)
req(:delete, path)
end
|
.get(path) ⇒ Object
14
15
16
|
# File 'lib/zspay/resource.rb', line 14
def get(path)
req(:get, path)
end
|
.patch(path, payload) ⇒ Object
10
11
12
|
# File 'lib/zspay/resource.rb', line 10
def patch(path, payload)
req(:patch, path, payload)
end
|
.post(path, payload = {}, custom_token = nil, body: 'json') ⇒ Object
6
7
8
|
# File 'lib/zspay/resource.rb', line 6
def post(path, payload = {}, custom_token = nil, body: 'json')
req(:post, path, payload, custom_token, body: body)
end
|
.put(path, payload = {}) ⇒ Object
22
23
24
|
# File 'lib/zspay/resource.rb', line 22
def put(path, payload = {})
req(:put, path, payload)
end
|