Class: Reggora::Submission

Inherits:
Object
  • Object
show all
Defined in:
lib/reggora/Entity/Lender/submission.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Submission

Returns a new instance of Submission.



3
4
5
6
# File 'lib/reggora/Entity/Lender/submission.rb', line 3

def initialize(client)
  @model = 'submission'
  @client = client
end

Instance Method Details

#all(order_id) ⇒ Object

retrieves all submissions associated with an order.



8
9
10
# File 'lib/reggora/Entity/Lender/submission.rb', line 8

def all(order_id)
  @client.get("/order-submissions/#{order_id}")
end

#download_submission_doc(order_id, version, report_type) ⇒ Object

retrieves one of the three forms that are associated with an order submission.



13
14
15
# File 'lib/reggora/Entity/Lender/submission.rb', line 13

def download_submission_doc(order_id, version, report_type)
  @client.get("/order-submission/#{order_id}/#{version}/#{report_type}")
end