class PaymentsApi::Configuration
Attributes
api_key[RW]
api_root[RW]
http_client_class[RW]
logger[RW]
open_timeout[RW]
read_timeout[RW]
request_headers[RW]
Public Class Methods
new()
click to toggle source
# File lib/payments_api/configuration.rb, line 13 def initialize @api_root = 'https://publicapi.payments.service.gov.uk' @open_timeout = 10 # connection timeout in seconds @read_timeout = 20 # read timeout in seconds @request_headers = { 'User-Agent' => "govuk-pay-ruby-client v#{PaymentsApi::VERSION}", 'Content-Type' => 'application/json', 'Accept' => 'application/json' }.freeze @http_client_class = PaymentsApi::HttpClient end