Sha256: 4daaaf859b4b91343f896b35ead1e956902478db52e02fff7c3208f184437df1

Contents?: true

Size: 427 Bytes

Versions: 6

Compression:

Stored size: 427 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.new
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
exvo-auth-0.7.16 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.7.15 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.7.14 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.7.13 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.7.12 lib/exvo_auth/autonomous/base.rb
exvo-auth-0.7.11 lib/exvo_auth/autonomous/base.rb