Class: U2F::RegisterRequest
- Inherits:
-
Object
- Object
- U2F::RegisterRequest
- Includes:
- RequestBase
- Defined in:
- lib/u2f/register_request.rb
Instance Attribute Summary collapse
-
#challenge ⇒ Object
Returns the value of attribute challenge.
Attributes included from RequestBase
Instance Method Summary collapse
- #as_json(options = {}) ⇒ Object
-
#initialize(challenge) ⇒ RegisterRequest
constructor
A new instance of RegisterRequest.
Methods included from RequestBase
Constructor Details
#initialize(challenge) ⇒ RegisterRequest
Returns a new instance of RegisterRequest.
6 7 8 |
# File 'lib/u2f/register_request.rb', line 6 def initialize(challenge) @challenge = challenge end |
Instance Attribute Details
#challenge ⇒ Object
Returns the value of attribute challenge.
4 5 6 |
# File 'lib/u2f/register_request.rb', line 4 def challenge @challenge end |
Instance Method Details
#as_json(options = {}) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/u2f/register_request.rb', line 10 def as_json( = {}) { version: version, challenge: challenge } end |