class Reggora::Evault

Public Class Methods

new(client) click to toggle source
# File lib/reggora/Entity/Lender/evault.rb, line 3
def initialize(client)
  @model = 'evault'
  @client = client
end

Public Instance Methods

delete_document(params) click to toggle source

delete a document from the evault

# File lib/reggora/Entity/Lender/evault.rb, line 28
def delete_document(params)
  @client.delete("/evault", params)
end
document(evault_id, document_id) click to toggle source

returns a file object specified by the evault ID and the document ID

# File lib/reggora/Entity/Lender/evault.rb, line 13
def document(evault_id, document_id)
  @client.get("/evault/#{evault_id}/#{document_id}")
end
find(id) click to toggle source

returns an eVault object

# File lib/reggora/Entity/Lender/evault.rb, line 8
def find(id)
  @client.get("/evault/#{id}")
end
upload_document(upload_params) click to toggle source

upload a document to an evault and returns the ID of the document

# File lib/reggora/Entity/Lender/evault.rb, line 18
def upload_document(upload_params)
  @client.post_file("/evault", upload_params)
end
upload_p_s(upload_params) click to toggle source

upload a P&S to an order and returns the ID of the P&S document

# File lib/reggora/Entity/Lender/evault.rb, line 23
def upload_p_s(upload_params)
  @client.post_file("/p_and_s", upload_params)
end