Class: DocFox::Authentication::Facade
- Inherits:
-
Object
- Object
- DocFox::Authentication::Facade
- Defined in:
- lib/doc_fox/authentication/facade.rb
Instance Attribute Summary collapse
-
#digest_algorithm ⇒ Object
readonly
Returns the value of attribute digest_algorithm.
-
#nonce ⇒ Object
readonly
Returns the value of attribute nonce.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Facade
constructor
A new instance of Facade.
Constructor Details
#initialize(hash) ⇒ Facade
Returns a new instance of Facade.
6 7 8 9 10 11 |
# File 'lib/doc_fox/authentication/facade.rb', line 6 def initialize(hash) attributes = hash.dig('data', 'attributes') @nonce = attributes['nonce'] @digest_algorithm = attributes['digest_algorithm'] end |
Instance Attribute Details
#digest_algorithm ⇒ Object (readonly)
Returns the value of attribute digest_algorithm.
4 5 6 |
# File 'lib/doc_fox/authentication/facade.rb', line 4 def digest_algorithm @digest_algorithm end |
#nonce ⇒ Object (readonly)
Returns the value of attribute nonce.
4 5 6 |
# File 'lib/doc_fox/authentication/facade.rb', line 4 def nonce @nonce end |