Class: SmartId::Api::Authentication::Base
- Inherits:
-
Object
- Object
- SmartId::Api::Authentication::Base
- Defined in:
- lib/smart_id/api/authentication/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#authentication_hash ⇒ Object
readonly
Returns the value of attribute authentication_hash.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(**opts) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(**opts) ⇒ Base
Returns a new instance of Base.
15 16 17 18 19 20 |
# File 'lib/smart_id/api/authentication/base.rb', line 15 def initialize(**opts) @authentication_hash = opts[:authentication_hash] @display_text = opts[:display_text] @certificate_level = opts[:certificate_level] @multiple_choice = opts[:multiple_choice] end |
Instance Attribute Details
#authentication_hash ⇒ Object (readonly)
Returns the value of attribute authentication_hash.
9 10 11 |
# File 'lib/smart_id/api/authentication/base.rb', line 9 def authentication_hash @authentication_hash end |
Class Method Details
.authenticate(**opts) ⇒ Object
11 12 13 |
# File 'lib/smart_id/api/authentication/base.rb', line 11 def self.authenticate(**opts) new(**opts).call end |