Sha256: 5b3caa03e84152e6b079c6a0d6c62060fc3149d2b63370ecb8fa5d48230a024a
Contents?: true
Size: 476 Bytes
Versions: 4
Compression:
Stored size: 476 Bytes
Contents
# -*- encoding : utf-8 -*- require 'phrase' require 'phrase/api' class Phrase::Api::Config def self.api_port ENV.fetch("PHRASE_API_PORT", "443") end def self.api_host ENV.fetch("PHRASE_API_HOST", "phraseapp.com") end def self.api_path_prefix "/api/#{Phrase::API_VERSION}" end def self.api_use_ssl? (ENV.fetch("PHRASE_API_USE_SSL", "1") == "1") end def self.api_max_retries ENV.fetch("PHRASE_API_MAX_RETRIES", 3).to_i end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
phrase-0.4.13 | lib/phrase/api/config.rb |
phrase-0.4.12 | lib/phrase/api/config.rb |
phrase-0.4.11 | lib/phrase/api/config.rb |
phrase-0.4.10 | lib/phrase/api/config.rb |