Class: Wampproto::Auth::Base
- Inherits:
-
Object
- Object
- Wampproto::Auth::Base
- Defined in:
- lib/wampproto/auth/base.rb
Overview
Auth Base
Direct Known Subclasses
Instance Attribute Summary collapse
-
#authextra ⇒ Object
readonly
Returns the value of attribute authextra.
-
#authid ⇒ Object
readonly
Returns the value of attribute authid.
-
#authmethod ⇒ Object
readonly
Returns the value of attribute authmethod.
Instance Method Summary collapse
- #authenticate(_challenge) ⇒ Object
-
#initialize(method, authid, authextra = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(method, authid, authextra = {}) ⇒ Base
Returns a new instance of Base.
9 10 11 12 13 |
# File 'lib/wampproto/auth/base.rb', line 9 def initialize(method, authid, authextra = {}) @authmethod = Validate.string!("AuthMethod", method) @authid = Validate.string!("AuthId", authid) @authextra = Validate.hash!("AuthExtra", authextra) end |
Instance Attribute Details
#authextra ⇒ Object (readonly)
Returns the value of attribute authextra.
7 8 9 |
# File 'lib/wampproto/auth/base.rb', line 7 def authextra @authextra end |
#authid ⇒ Object (readonly)
Returns the value of attribute authid.
7 8 9 |
# File 'lib/wampproto/auth/base.rb', line 7 def authid @authid end |
#authmethod ⇒ Object (readonly)
Returns the value of attribute authmethod.
7 8 9 |
# File 'lib/wampproto/auth/base.rb', line 7 def authmethod @authmethod end |
Instance Method Details
#authenticate(_challenge) ⇒ Object
15 16 17 |
# File 'lib/wampproto/auth/base.rb', line 15 def authenticate(_challenge) raise NotImplementedError end |