module PaymentsApi
Constants
- VERSION
Public Class Methods
configuration()
click to toggle source
Get current configuration
@return [PaymentsApi::Configuration] current configuration
# File lib/payments_api/configuration.rb, line 33 def self.configuration @configuration ||= Configuration.new end
configure() { |configuration| ... }
click to toggle source
Configure the client
Any attributes listed in attr_accessor
can be configured
api_root
, open_timeout
, read_timeout
and http_client_class
are set to sensible defaults already, but still can be changed
request_headers
can also be changed or configured, but it is not
recommended unless you know what you are doing
@example
PaymentsApi.configure do |config| config.api_key = 'secret' end
# File lib/payments_api/configuration.rb, line 51 def self.configure yield configuration end