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.16.5 lib/exvo_auth/autonomous/base.rb
exvo_auth-0.16.4 lib/exvo_auth/autonomous/base.rb
exvo_auth-0.16.3 lib/exvo_auth/autonomous/base.rb
exvo_auth-0.16.2 lib/exvo_auth/autonomous/base.rb
exvo_auth-0.16.1 lib/exvo_auth/autonomous/base.rb
exvo_auth-0.16.0 lib/exvo_auth/autonomous/base.rb
exvo_auth-0.15.1 lib/exvo_auth/autonomous/base.rb
exvo_auth-0.15.0 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.14.1 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.14.0 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.13.0 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.12.2 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.12.1 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.12.0 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.11.2 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.11.1 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.11.0 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.10.4 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.10.3 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.10.2 lib/exvo_auth/autonomous/base.rb