Class: AhoSdk::Verifier::RenderResource Private
- Inherits:
-
Object
- Object
- AhoSdk::Verifier::RenderResource
- 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.
Render resource operations
Instance Method Summary collapse
-
#create(body: nil, idempotency_key: nil) ⇒ Hash
private
Render claims as visual credential.
-
#initialize(client) ⇒ RenderResource
constructor
private
A new instance of RenderResource.
-
#list(id:, format: nil) ⇒ Hash
private
Render verified claims as visual credential.
Constructor Details
#initialize(client) ⇒ RenderResource
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 RenderResource.
96 97 98 |
# File 'lib/aho_sdk/verifier.rb', line 96 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.
Render claims as visual credential
110 111 112 |
# File 'lib/aho_sdk/verifier.rb', line 110 def create(body: nil, idempotency_key: nil) @client.post("/v1/verifier/render", body: body, idempotency_key: idempotency_key) end |
#list(id:, format: 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.
Render verified claims as visual credential
103 104 105 |
# File 'lib/aho_sdk/verifier.rb', line 103 def list(id:, format: nil) @client.get("/v1/verifier/dc_sessions/#{id}/render", params: { format: format }) end |