Class: PersonaApi::DatabaseVerificationsResource
- Inherits:
-
Resource
- Object
- Resource
- PersonaApi::DatabaseVerificationsResource
show all
- Defined in:
- lib/persona_api/resources/database_verifications.rb
Instance Attribute Summary
Attributes inherited from Resource
#client
Instance Method Summary
collapse
Methods inherited from Resource
#delete_request, #get_request, #handle_response, #initialize, #patch_request, #post_request, #put_request
Instance Method Details
#create(**attributes) ⇒ Object
3
4
5
6
7
|
# File 'lib/persona_api/resources/database_verifications.rb', line 3
def create(**attributes)
DatabaseVerification.new post_request("verification/databases", body: attributes).body.dig("data")
end
|
#retrieve(ver_id:) ⇒ Object
9
10
11
|
# File 'lib/persona_api/resources/database_verifications.rb', line 9
def retrieve(ver_id:)
DatabaseVerification.new get_request("verification/databases/#{ver_id}").body.dig("data")
end
|
#submit(ver_id:, **attributes) ⇒ Object
13
14
15
|
# File 'lib/persona_api/resources/database_verifications.rb', line 13
def submit(ver_id:, **attributes)
DatabaseVerification.new post_request("verification/databases/#{ver_id}/submit", body: attributes).body.dig("data")
end
|