Sha256: f672cfa5c49618949a390881a6b6b45975dc277c322aab1a1ae951b4cdb2ef2d

Contents?: true

Size: 432 Bytes

Versions: 34

Compression:

Stored size: 432 Bytes

Contents

class ExvoAuth::Autonomous::Base
  attr_reader :params
  @@cache = ExvoAuth::Autonomous::Cache.new
  
  def initialize(params = {})
    @params = params
  end
  
  protected
  
  def validate_params!(*keys)
    missing = keys - params.keys
    raise(ArgumentError, "Please configure following keys: #{missing.join(", ")}") if missing.any?
  end
  
  # Makes testing easy
  def auth
    ExvoAuth::Autonomous::Auth.instance
  end
end

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
exvo-auth-0.10.1 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.10.0 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.9.10 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.9.9 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.9.8 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.9.7 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.9.6 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.9.5 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.9.4 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.9.3 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.9.2 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.9.0 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.8.2 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.8.0 lib/exvo_auth/autonomous/base.rb