Class: Files::U2fSignRequest
- Inherits:
-
Object
- Object
- Files::U2fSignRequest
- Defined in:
- lib/files.com/models/u2f_sign_request.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#app_id ⇒ Object
string - App ID for U2F.
-
#challenge ⇒ Object
string - Challenge String for U2F.
-
#initialize(attributes = {}, options = {}) ⇒ U2fSignRequest
constructor
A new instance of U2fSignRequest.
-
#sign_request ⇒ Object
string - Signature request for U2F.
Constructor Details
#initialize(attributes = {}, options = {}) ⇒ U2fSignRequest
Returns a new instance of U2fSignRequest.
7 8 9 10 |
# File 'lib/files.com/models/u2f_sign_request.rb', line 7 def initialize(attributes = {}, = {}) @attributes = attributes || {} @options = || {} end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/files.com/models/u2f_sign_request.rb', line 5 def attributes @attributes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/files.com/models/u2f_sign_request.rb', line 5 def @options end |
Instance Method Details
#app_id ⇒ Object
string - App ID for U2F
13 14 15 |
# File 'lib/files.com/models/u2f_sign_request.rb', line 13 def app_id @attributes[:app_id] end |
#challenge ⇒ Object
string - Challenge String for U2F
18 19 20 |
# File 'lib/files.com/models/u2f_sign_request.rb', line 18 def challenge @attributes[:challenge] end |
#sign_request ⇒ Object
string - Signature request for U2F
23 24 25 |
# File 'lib/files.com/models/u2f_sign_request.rb', line 23 def sign_request @attributes[:sign_request] end |