Sha256: 4f134f105a6c2b80c8282e6c4121caa3c1bf2100565016b2cdc899e13c2bb9c9

Contents?: true

Size: 559 Bytes

Versions: 1

Compression:

Stored size: 559 Bytes

Contents

# frozen_string_literal: true

module Tikkie
  module Api
    # Tikkie API configuration.
    class Configuration
      SANDBOX_API_URL = "https://api-sandbox.abnamro.com/v2/tikkie/"
      PRODUCTION_API_URL = "https://api.abnamro.com/v2/tikkie/"

      attr_reader :api_key, :app_token, :sandbox

      def initialize(api_key:, app_token: nil, sandbox: false)
        @api_key = api_key
        @app_token = app_token
        @sandbox = sandbox
      end

      def api_url
        @sandbox ? SANDBOX_API_URL : PRODUCTION_API_URL
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tikkie-api-2.0.0 lib/tikkie/api/configuration.rb