Sha256: d308528971aebece7fe5a64f932d36e9bb12ac12b674ca11dc6cf317562b05bd
Contents?: true
Size: 562 Bytes
Versions: 7
Compression:
Stored size: 562 Bytes
Contents
# frozen_string_literal: true module Iwoca class Configuration attr_accessor :api_key, :webhook_signature, :env attr_writer :debug API_DOMAINS = { production: 'https://www.iwoca.co.uk', development: 'https://stage.iwoca-dev.co.uk' }.freeze def initialize @api_key = '' @webhook_signature = '' @env = defined?(Rails) ? Rails.env : :development @debug = false end def debug? @debug end def api_domain API_DOMAINS[@env.to_sym] || API_DOMAINS[:development] end end end
Version data entries
7 entries across 7 versions & 1 rubygems