Class: LemonwayOnboarding::Api::Documents
- Inherits:
-
Object
- Object
- LemonwayOnboarding::Api::Documents
- Defined in:
- lib/lemonway_onboarding/api/documents.rb
Overview
Documents API for Lemonway Onboarding
Instance Method Summary collapse
-
#get(account_id, document_name) ⇒ Hash
Retrieves a document for a specific account.
-
#initialize(client = LemonwayOnboarding::Client.new) ⇒ LemonwayOnboarding::Api::Documents
constructor
Initializes the Documents API with a client.
-
#update(onboarding_id, body) ⇒ Hash
Updates a document for a specific onboarding process.
Constructor Details
#initialize(client = LemonwayOnboarding::Client.new) ⇒ LemonwayOnboarding::Api::Documents
Initializes the Documents API with a client.
11 12 13 |
# File 'lib/lemonway_onboarding/api/documents.rb', line 11 def initialize(client = LemonwayOnboarding::Client.new) @client = client end |
Instance Method Details
#get(account_id, document_name) ⇒ Hash
Retrieves a document for a specific account.
20 21 22 |
# File 'lib/lemonway_onboarding/api/documents.rb', line 20 def get(account_id, document_name) @client.get("accounts/#{account_id}/documents/#{document_name}") end |
#update(onboarding_id, body) ⇒ Hash
Updates a document for a specific onboarding process.
29 30 31 |
# File 'lib/lemonway_onboarding/api/documents.rb', line 29 def update(onboarding_id, body) @client.post("legal_entity_onboarding/#{onboarding_id}/document", body) end |