Sha256: 46c6cf517ab312a30d9edefd8861fab622d0cb7cfa3850b0bdf3802a97ba74cd

Contents?: true

Size: 798 Bytes

Versions: 4

Compression:

Stored size: 798 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 ||= nil
  end
  
  def self.client_secret=(client_secret)
    @@client_secret = client_secret
  end
  
  def self.client_secret
    @@client_secret ||= nil 
  end
  
  # Set this to false during development ONLY!
  def self.require_ssl=(require_ssl)
    @@require_ssl = require_ssl
  end
  
  def self.require_ssl
    @@require_ssl = true unless defined?(@@require_ssl)
    @@require_ssl
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
exvo-auth-0.9.6 lib/exvo_auth/config.rb
exvo-auth-0.9.5 lib/exvo_auth/config.rb
exvo-auth-0.9.4 lib/exvo_auth/config.rb
exvo-auth-0.9.3 lib/exvo_auth/config.rb