module PaysonAPI::V2
Constants
- CURRENCIES
- LOCALES
- PAYSON_API_ENDPOINT
- PAYSON_API_RESOURCES
- PAYSON_API_TEST_ENDPOINT
- PAYSON_API_VERSION
Public Instance Methods
api_base_url()
click to toggle source
# File lib/payson_api/v2/config.rb, line 47 def api_base_url test? ? PAYSON_API_TEST_ENDPOINT : PAYSON_API_ENDPOINT end
config()
click to toggle source
# File lib/payson_api/v2/config.rb, line 30 def config @config end
configure() { |config ||= configuration| ... }
click to toggle source
# File lib/payson_api/v2/config.rb, line 26 def configure yield @config ||= Configuration.new # rubocop:disable Naming/MemoizedInstanceVariableName end
test?()
click to toggle source
# File lib/payson_api/v2/config.rb, line 43 def test? @config.test_mode || @config.api_user_id == '4' end