class Rack::SimpleAuth::HMAC::Config

Config objects will be instantiated out of this class when using Rack::SimpleAuth::HMAC::Middleware Also the public instance attributes / virtual attributes will be populated via the Middleware DSL

@!attribute [w] tolerance

@return [Fixnum|Float]

@!attribute [w] secret

@return [String]

@!attribute [w] signature

@return [String]

@!attribute [rw] logpath

@return [String]

@!attribute [rw] request_config

@return [Hash]

@!attribute [rw] verbose

@return [TrueClass|NilClass]

Attributes

logpath[RW]
request_config[RW]
secret[W]
signature[W]
tolerance[W]
verbose[RW]

Public Instance Methods

method_missing(name, *_args) click to toggle source

Throw Runtime error for unknown attribute

@param [Symbol] name @param [Array] args

# File lib/rack/simple_auth/hmac/config.rb, line 39
def method_missing(name, *_args)
  fail "Unknown option #{name.to_s.gsub!('=', '')}"
end
secret() click to toggle source

Secret Attribute with nil guard

@return [String] secret

# File lib/rack/simple_auth/hmac/config.rb, line 57
def secret
  @secret || ''
end
signature() click to toggle source

Signature Attribute with nil guard

@return [String] signature

# File lib/rack/simple_auth/hmac/config.rb, line 66
def signature
  @signature || ''
end
tolerance() click to toggle source

Tolerance Attribute with nil guard

@return [Fixnum] tolerance

# File lib/rack/simple_auth/hmac/config.rb, line 48
def tolerance
  @tolerance || 1000
end