Class: EMIS::PaymentConfiguration

Inherits:
Configuration show all
Defined in:
lib/emis/payment_configuration.rb

Overview

Configuration for PaymentService includes API URL and breakers service name.

Instance Attribute Summary

Attributes inherited from Common::Client::Configuration::Base

#base_request_headers, #open_timeout, #read_timeout, #request_types, #user_agent

Instance Method Summary collapse

Methods inherited from Configuration

#allow_missing_certs?, #connection, ssl_cert_path, ssl_key_path, #ssl_options

Methods inherited from Common::Client::Configuration::SOAP

#allow_missing_certs?, #ssl_cert, #ssl_key

Methods inherited from Common::Client::Configuration::Base

#breakers_error_threshold, #breakers_exception_handler, #breakers_matcher, #breakers_service, #create_new_breakers_service, #request_options, #service_exception

Instance Method Details

#base_pathString

Payment Service URL

Returns:

  • (String)

    Payment Service URL



11
12
13
# File 'lib/emis/payment_configuration.rb', line 11

def base_path
  URI.join(Settings.emis.host, Settings.emis.payment_url.v1).to_s
end

#service_nameString

Payment Service breakers name

Returns:

  • (String)

    Payment Service breakers name



19
20
21
# File 'lib/emis/payment_configuration.rb', line 19

def service_name
  'EmisPayment'
end