Class: Virgil::SDK::Client::Requests::ConfirmIdentityRequest
- Inherits:
-
Object
- Object
- Virgil::SDK::Client::Requests::ConfirmIdentityRequest
- Defined in:
- lib/virgil/sdk/client/requests/confirm_identity_request.rb
Instance Attribute Summary collapse
-
#action_id ⇒ Object
readonly
Returns the value of attribute action_id.
-
#confirmation_code ⇒ Object
readonly
Returns the value of attribute confirmation_code.
-
#count_to_live ⇒ Object
readonly
Returns the value of attribute count_to_live.
-
#time_to_live ⇒ Object
readonly
Returns the value of attribute time_to_live.
Instance Method Summary collapse
-
#initialize(confirmation_code, action_id, time_to_live, count_to_live) ⇒ ConfirmIdentityRequest
constructor
A new instance of ConfirmIdentityRequest.
-
#request_model ⇒ Hash
request model used for json representation.
Constructor Details
#initialize(confirmation_code, action_id, time_to_live, count_to_live) ⇒ ConfirmIdentityRequest
Returns a new instance of ConfirmIdentityRequest
44 45 46 47 48 49 |
# File 'lib/virgil/sdk/client/requests/confirm_identity_request.rb', line 44 def initialize(confirmation_code, action_id, time_to_live, count_to_live) @confirmation_code = confirmation_code @action_id = action_id @time_to_live = time_to_live @count_to_live = count_to_live end |
Instance Attribute Details
#action_id ⇒ Object (readonly)
Returns the value of attribute action_id
41 42 43 |
# File 'lib/virgil/sdk/client/requests/confirm_identity_request.rb', line 41 def action_id @action_id end |
#confirmation_code ⇒ Object (readonly)
Returns the value of attribute confirmation_code
41 42 43 |
# File 'lib/virgil/sdk/client/requests/confirm_identity_request.rb', line 41 def confirmation_code @confirmation_code end |
#count_to_live ⇒ Object (readonly)
Returns the value of attribute count_to_live
41 42 43 |
# File 'lib/virgil/sdk/client/requests/confirm_identity_request.rb', line 41 def count_to_live @count_to_live end |
#time_to_live ⇒ Object (readonly)
Returns the value of attribute time_to_live
41 42 43 |
# File 'lib/virgil/sdk/client/requests/confirm_identity_request.rb', line 41 def time_to_live @time_to_live end |
Instance Method Details
#request_model ⇒ Hash
request model used for json representation.
54 55 56 57 58 59 60 61 62 63 |
# File 'lib/virgil/sdk/client/requests/confirm_identity_request.rb', line 54 def request_model return { 'confirmation_code': confirmation_code, 'action_id': action_id, 'token': { 'time_to_live': time_to_live, 'count_to_live': count_to_live } } end |