Sha256: 3036e33ff00c2d34f66b76aae4aebc35b2b593f87371d7d321736c5ceb4b4ad4

Contents?: true

Size: 1.1 KB

Versions: 4

Compression:

Stored size: 1.1 KB

Contents

# -*- encoding : utf-8 -*-

class Phrase::Config
  def client_version
    Phrase::CLIENT_VERSION
  end
  
  def api_version
    Phrase::API_VERSION
  end

  def auth_token
    @@auth_token = "" if !defined? @@auth_token or @@auth_token.nil?
    @@auth_token
  end
  
  def auth_token=(auth_token)
    @@auth_token = auth_token
  end
  
  def enabled
    @@enabled = true if !defined? @@enabled or @@enabled.nil?
    @@enabled
  end
  
  def enabled=(enabled)
    @@enabled = enabled
  end
    
  def backend
    @@backend ||= Phrase::Backend::PhraseService.new
  end
  
  def backend=(backend)
    @@backend = backend
  end
  
  def prefix
    @@prefix ||= "{{__"
  end
  
  def prefix=(prefix)
    @@prefix = prefix
  end
  
  def suffix
    @@suffix ||= "__}}"
  end
  
  def suffix=(suffix)
    @@suffix = suffix
  end
  
  def js_host
    @@js_host ||= 'phraseapp.com'
  end
  
  def js_host=(js_host)
    @@js_host = js_host
  end
  
  def js_use_ssl
    @@js_use_ssl = true if !defined? @@js_use_ssl or @@js_use_ssl.nil?
    @@js_use_ssl
  end
  
  def js_use_ssl=(js_use_ssl)
    @@js_use_ssl = js_use_ssl
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
phrase-0.2.0.beta.5 lib/phrase/config.rb
phrase-0.2.0.beta.4 lib/phrase/config.rb
phrase-0.2.0.beta.3 lib/phrase/config.rb
phrase-0.2.0.beta.2 lib/phrase/config.rb