Class: AhoSdk::Verifier::DcSessionsResource Private
- Inherits:
-
Object
- Object
- AhoSdk::Verifier::DcSessionsResource
- Defined in:
- lib/aho_sdk/verifier.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Dc_sessions resource operations
Instance Method Summary collapse
-
#create(body: nil, idempotency_key: nil) ⇒ Hash
private
Create a DC API session.
-
#get(id:) ⇒ Hash
private
Get DC API session status.
-
#initialize(client) ⇒ DcSessionsResource
constructor
private
A new instance of DcSessionsResource.
-
#verify(id:, body: nil, idempotency_key: nil) ⇒ Hash
private
Verify a DC API session.
Constructor Details
#initialize(client) ⇒ DcSessionsResource
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of DcSessionsResource.
66 67 68 |
# File 'lib/aho_sdk/verifier.rb', line 66 def initialize(client) @client = client end |
Instance Method Details
#create(body: nil, idempotency_key: nil) ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Create a DC API session
73 74 75 |
# File 'lib/aho_sdk/verifier.rb', line 73 def create(body: nil, idempotency_key: nil) @client.post("/v1/verifier/dc_sessions", body: body, idempotency_key: idempotency_key) end |
#get(id:) ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Get DC API session status
80 81 82 |
# File 'lib/aho_sdk/verifier.rb', line 80 def get(id:) @client.get("/v1/verifier/dc_sessions/#{id}") end |
#verify(id:, body: nil, idempotency_key: nil) ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Verify a DC API session
87 88 89 |
# File 'lib/aho_sdk/verifier.rb', line 87 def verify(id:, body: nil, idempotency_key: nil) @client.post("/v1/verifier/dc_sessions/#{id}/verify", body: body, idempotency_key: idempotency_key) end |