Class: AhoSdk::Issuer::VerifyResource Private

Inherits:
Object
  • Object
show all
Defined in:
lib/aho_sdk/issuer.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.

Verify resource operations

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ VerifyResource

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 VerifyResource.



444
445
446
# File 'lib/aho_sdk/issuer.rb', line 444

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.

Verify a credential

Returns:

  • (Hash)


458
459
460
# File 'lib/aho_sdk/issuer.rb', line 458

def create(body: nil, idempotency_key: nil)
  @client.post("/v1/issuer/verify", body: body, idempotency_key: idempotency_key)
end

#get(uuid:) ⇒ 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 credential by UUID

Returns:

  • (Hash)


451
452
453
# File 'lib/aho_sdk/issuer.rb', line 451

def get(uuid:)
  @client.get("/v1/issuer/verify/#{uuid}")
end