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.



483
484
485
# File 'lib/aho_sdk/issuer.rb', line 483

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)


497
498
499
# File 'lib/aho_sdk/issuer.rb', line 497

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)


490
491
492
# File 'lib/aho_sdk/issuer.rb', line 490

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