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
-
#extra_fields ⇒ Object
readonly
Returns the value of attribute extra_fields.
-
#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, extra_fields = {}) ⇒ VerifyIdentityRequest
constructor
Initializes a new instance of the VerifyIdentityRequest class.
-
#request_model ⇒ Object
Request model used for json representation.
Constructor Details
#initialize(identity, identity_type, extra_fields = {}) ⇒ VerifyIdentityRequest
Initializes a new instance of the Virgil::SDK::Client::Requests::VerifyIdentityRequest class.
44 45 46 47 48 |
# File 'lib/virgil/sdk/client/requests/verify_identity_request.rb', line 44 def initialize(identity, identity_type, extra_fields = {}) @identity_type = identity_type @identity = identity @extra_fields = extra_fields end |
Instance Attribute Details
#extra_fields ⇒ Object (readonly)
Returns the value of attribute extra_fields
41 42 43 |
# File 'lib/virgil/sdk/client/requests/verify_identity_request.rb', line 41 def extra_fields @extra_fields end |
#identity ⇒ Object (readonly)
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 (readonly)
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.
51 52 53 54 55 56 57 |
# File 'lib/virgil/sdk/client/requests/verify_identity_request.rb', line 51 def request_model return { 'type': identity_type, 'value': identity, 'extra_fields': extra_fields } end |