Sha256: 5d5dbd84f348e910c9acdba2b2940ffeb7ac5839808608eb2e9aacf5e28de1ab

Contents?: true

Size: 624 Bytes

Versions: 2

Compression:

Stored size: 624 Bytes

Contents

# frozen_string_literal: true

module CapitalOnTap
  class Configuration
    attr_accessor :client_id, :client_secret, :username, :password, :env
    attr_writer :debug

    DEFAULT_AUTH_DOMAIN = 'https://prelive-api-auth.capitalontap.com'
    DEFAULT_DOMAIN = 'https://prelive-api-partner.capitalontap.com'

    def initialize
      @client_id = ''
      @client_secret = ''
      @username = ''
      @password = ''
      @env = :development
      @debug = false
    end

    def debug?
      @debug
    end

    def base_auth_url
      DEFAULT_AUTH_DOMAIN
    end

    def base_url
      DEFAULT_DOMAIN
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
capital_on_tap-0.1.3 lib/capital_on_tap/configuration.rb
capital_on_tap-0.1.2 lib/capital_on_tap/configuration.rb