Class: Cequens::Connection
- Inherits:
-
Object
- Object
- Cequens::Connection
- Defined in:
- lib/cequens/connection.rb
Constant Summary collapse
- CEQUENS_BASE_URL =
'https://apis.cequens.com/'
Class Method Summary collapse
Class Method Details
.get(path, _params, _body, _options) ⇒ Object
11 12 13 |
# File 'lib/cequens/connection.rb', line 11 def get(path, _params, _body, ) connection.get(path) end |
.post(path, params, body, _options) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/cequens/connection.rb', line 15 def post(path, params, body, ) connection.post(path) do |request| request.params = params request.body = body.to_json end end |