Class: DocFox::Authentication::Facade

Inherits:
Object
  • Object
show all
Defined in:
lib/doc_fox/authentication/facade.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_algorithmObject (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

#nonceObject (readonly)

Returns the value of attribute nonce.



4
5
6
# File 'lib/doc_fox/authentication/facade.rb', line 4

def nonce
  @nonce
end