Sha256: e75c2c2588caed39825a8f262c7cc087aca7ad9a47c5e4e44037d5514f0edec2

Contents?: true

Size: 394 Bytes

Versions: 31

Compression:

Stored size: 394 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
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
phrase-0.4.9 lib/phrase/api/config.rb
phrase-0.4.8 lib/phrase/api/config.rb
phrase-0.4.7 lib/phrase/api/config.rb
phrase-0.4.6 lib/phrase/api/config.rb
phrase-0.4.5 lib/phrase/api/config.rb
phrase-0.4.4 lib/phrase/api/config.rb
phrase-0.4.3 lib/phrase/api/config.rb
phrase-0.4.2 lib/phrase/api/config.rb
phrase-0.4.1 lib/phrase/api/config.rb
phrase-0.4.0 lib/phrase/api/config.rb
phrase-0.3.7 lib/phrase/api/config.rb
phrase-0.3.6 lib/phrase/api/config.rb
phrase-0.3.5 lib/phrase/api/config.rb
phrase-0.3.4 lib/phrase/api/config.rb
phrase-0.3.3 lib/phrase/api/config.rb
phrase-0.3.2 lib/phrase/api/config.rb
phrase-0.3.1 lib/phrase/api/config.rb
phrase-0.3.0 lib/phrase/api/config.rb
phrase-0.2.5 lib/phrase/api/config.rb
phrase-0.2.4 lib/phrase/api/config.rb