Sha256: c458a4cfea0828d423ca7ccb2a15c50c52665d1482602e8e796a7eb281d4b779

Contents?: true

Size: 574 Bytes

Versions: 1

Compression:

Stored size: 574 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

  def self.skip_ssl_validation?
    ENV.fetch("PHRASE_API_SKIP_SSL_VALIDATION", "0") == "1"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
phrase-0.4.14 lib/phrase/api/config.rb