class Moonrope::Authenticator
Attributes
description[RW]
@return [String] the description for the authenticator
doc[RW]
@return [Bool] whether or not the action should be documented
errors[R]
@return [Hash] the errors this authenticator can raise
friendly_name[RW]
@return [String] the friendly name for the authenticator
headers[R]
@return [Hash] the headers that this authenticator uses
lookup[RW]
@return [Proc] the lookup block
name[R]
@return [Symbol] the name of the authenticator
rules[R]
@return [Hash] the rules this authenticator provides
Public Class Methods
new(name, &block)
click to toggle source
# File lib/moonrope/authenticator.rb, line 6 def initialize(name, &block) @name = name @headers = {} @errors = {} @rules = {} if block_given? dsl = Moonrope::DSL::AuthenticatorDSL.new(self) dsl.instance_eval(&block) end end