Module: TochkaCyclopsApi

Defined in:
lib/tochka_cyclops_api.rb,
lib/tochka_cyclops_api/result.rb,
lib/tochka_cyclops_api/methods.rb,
lib/tochka_cyclops_api/request.rb,
lib/tochka_cyclops_api/version.rb,
lib/tochka_cyclops_api/response.rb,
lib/tochka_cyclops_api/configuration.rb,
lib/tochka_cyclops_api/data_processor.rb,
lib/tochka_cyclops_api/schemas/requests/echo.rb,
lib/tochka_cyclops_api/schemas/responses/echo.rb,
lib/tochka_cyclops_api/schemas/responses/error.rb,
lib/tochka_cyclops_api/generators/models_generator.rb,
lib/tochka_cyclops_api/generators/initializer_generator.rb,
lib/tochka_cyclops_api/schemas/requests/get_beneficiary.rb,
lib/tochka_cyclops_api/schemas/requests/list_beneficiary.rb,
lib/tochka_cyclops_api/schemas/responses/get_beneficiary.rb,
lib/tochka_cyclops_api/schemas/responses/list_beneficiary.rb,
lib/tochka_cyclops_api/schemas/requests/activate_beneficiary.rb,
lib/tochka_cyclops_api/schemas/requests/create_beneficiary_fl.rb,
lib/tochka_cyclops_api/schemas/requests/create_beneficiary_ip.rb,
lib/tochka_cyclops_api/schemas/requests/create_beneficiary_ul.rb,
lib/tochka_cyclops_api/schemas/requests/update_beneficiary_fl.rb,
lib/tochka_cyclops_api/schemas/requests/update_beneficiary_ip.rb,
lib/tochka_cyclops_api/schemas/requests/update_beneficiary_ul.rb,
lib/tochka_cyclops_api/schemas/responses/activate_beneficiary.rb,
lib/tochka_cyclops_api/schemas/requests/deactivate_beneficiary.rb,
lib/tochka_cyclops_api/schemas/responses/create_beneficiary_fl.rb,
lib/tochka_cyclops_api/schemas/responses/create_beneficiary_ip.rb,
lib/tochka_cyclops_api/schemas/responses/create_beneficiary_ul.rb,
lib/tochka_cyclops_api/schemas/responses/update_beneficiary_fl.rb,
lib/tochka_cyclops_api/schemas/responses/update_beneficiary_ip.rb,
lib/tochka_cyclops_api/schemas/responses/update_beneficiary_ul.rb,
lib/tochka_cyclops_api/schemas/responses/deactivate_beneficiary.rb

Overview

Core module of this gem

Defined Under Namespace

Modules: Generators, Schemas, Types Classes: Configuration, DataProcessor, Error, Methods, Request, Response, Result

Constant Summary collapse

VERSION =
'0.4.0'

Class Method Summary collapse

Class Method Details

.configurationObject



23
24
25
# File 'lib/tochka_cyclops_api.rb', line 23

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



27
28
29
# File 'lib/tochka_cyclops_api.rb', line 27

def configure
  yield(configuration)
end

.send_request(method:, data:, layer:) ⇒ Object



31
32
33
# File 'lib/tochka_cyclops_api.rb', line 31

def send_request(method: ,data: , layer: )
  DataProcessor.send_request(method: ,data: , layer: )
end