Class: TochkaCyclopsApi::Request
- Inherits:
-
Object
- Object
- TochkaCyclopsApi::Request
- Defined in:
- lib/tochka_cyclops_api/request.rb
Overview
Module for sending requests to the bank’s api
Class Method Summary collapse
Class Method Details
.send_request(body:, method:, url:) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/tochka_cyclops_api/request.rb', line 10 def self.send_request(body:, method:, url: ) @method = method @body = body @uri = URI(url) @request_object = initialize_request_object @post_request = initialize_post_request @adapter = initialize_adapter call end |