Module: TinkoffClient::SendRequest
- Included in:
- Payment::Request, Payout::Request
- Defined in:
- lib/tinkoff_client/send_request.rb
Instance Method Summary collapse
Instance Method Details
#request(path:, keys:) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/tinkoff_client/send_request.rb', line 8 def request(path:, keys:) url = @url + path payload = init_params(keys).to_json result = RestClient.post(url, payload, content_type: :json) data = JSON.parse result.body end |