Sha256: 6670c4cfe4bdfe8bd0e043ec3ccd49afa3ff480bfc176bee7095b09ada6d1ed4
Contents?: true
Size: 546 Bytes
Versions: 1
Compression:
Stored size: 546 Bytes
Contents
module Whiplash class App module ApiConfig def api_url if defined?(Rails) %w(development test).include?(Rails.env.to_s) ? testing_url : production_url else ENV["WHIPLASH_API_URL"] end end def production_url ENV["WHIPLASH_API_URL"] || "https://www.getwhiplash.com" end def testing_url ENV["WHIPLASH_API_URL"] || "https://sandbox.getwhiplash.com" end def rate_limit ENV['WHIPLASH_RATE_LIMIT'] || 25 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whiplash-app-0.5.0 | lib/whiplash/app/api_config.rb |