Sha256: a7d37082fdcdf36999474ea0a0d1cfeff0a91f23b4f3edfd30564afa09632ecb

Contents?: true

Size: 797 Bytes

Versions: 3

Compression:

Stored size: 797 Bytes

Contents

module ExvoAuth::Config
  def self.host 
    @@host ||= 'https://auth.exvo.com' 
  end
  
  def self.host=(host) 
    @@host = host 
  end
  
  def self.callback_key
    @@callback_key ||= '_callback'
  end
  
  def self.callback_key=(callback_key)
    @@callback_key = callback_key 
  end
  
  def self.client_id=(client_id)
    @@client_id = client_id
  end
  
  def self.client_id
    @@client_id
  end
  
  def self.client_secret=(client_secret)
    @@client_secret = client_secret
  end
  
  def self.client_secret
    @@client_secret
  end
  
  # Set this to false during development ONLY!
  def self.require_ssl=(require_ssl)
    @@require_ssl = require_ssl
  end
  
  def self.require_ssl
    if @@require_ssl.nil?
      @@require_ssl = true
    else
      @@require_ssl
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
exvo-auth-0.9.2 lib/exvo_auth/config.rb
exvo-auth-0.9.0 lib/exvo_auth/config.rb
exvo-auth-0.8.2 lib/exvo_auth/config.rb