Sha256: 7c351484187a27daada83f2fa4653a809c5e3c42337909bae14f4d1686b615e0
Contents?: true
Size: 680 Bytes
Versions: 1
Compression:
Stored size: 680 Bytes
Contents
require 'singleton' module AvaTax class Configuration include Singleton def initialize @account_number = ENV['AVATAX_ACCOUNT_NUMBER'] @license_key = ENV['AVATAX_LICENSE_KEY'] @service_url = ENV['AVATAX_SERVICE_URL'] super end def account_number(acct_num = nil) return @account_number if @account_number and acct_num.nil? @account_number = acct_num.to_s end def license_key(license = nil) return @license_key if @license_key and license.nil? @license_key = license end def service_url(url = nil) return @service_url if @service_url and url.nil? @service_url = url end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
avatax-14.4.3 | lib/avatax/configuration.rb |