Class: Virgil::SDK::Client::Requests::VerifyIdentityRequest
- Inherits:
-
Object
- Object
- Virgil::SDK::Client::Requests::VerifyIdentityRequest
- Defined in:
- lib/virgil/sdk/client/requests/verify_identity_request.rb
Instance Attribute Summary collapse
-
#identity ⇒ Object
readonly
Returns the value of attribute identity.
-
#identity_type ⇒ Object
readonly
Returns the value of attribute identity_type.
Instance Method Summary collapse
-
#initialize(identity, identity_type) ⇒ VerifyIdentityRequest
constructor
A new instance of VerifyIdentityRequest.
-
#request_model ⇒ Object
Request model used for json representation.
Constructor Details
#initialize(identity, identity_type) ⇒ VerifyIdentityRequest
Returns a new instance of VerifyIdentityRequest.
44 45 46 47 |
# File 'lib/virgil/sdk/client/requests/verify_identity_request.rb', line 44 def initialize(identity, identity_type) self.identity_type = identity_type self.identity = identity end |
Instance Attribute Details
#identity ⇒ Object
Returns the value of attribute identity.
41 42 43 |
# File 'lib/virgil/sdk/client/requests/verify_identity_request.rb', line 41 def identity @identity end |
#identity_type ⇒ Object
Returns the value of attribute identity_type.
41 42 43 |
# File 'lib/virgil/sdk/client/requests/verify_identity_request.rb', line 41 def identity_type @identity_type end |
Instance Method Details
#request_model ⇒ Object
Request model used for json representation.
50 51 52 53 54 55 |
# File 'lib/virgil/sdk/client/requests/verify_identity_request.rb', line 50 def request_model return { 'type': identity_type, 'value': identity } end |