Class: Increase::Resources::SupplementalDocuments
- Inherits:
-
Object
- Object
- Increase::Resources::SupplementalDocuments
- Defined in:
- lib/increase/resources/supplemental_documents.rb
Instance Method Summary collapse
-
#create(params = {}, opts = {}) ⇒ Increase::Models::EntitySupplementalDocument
Create a supplemental document for an Entity.
-
#initialize(client:) ⇒ SupplementalDocuments
constructor
A new instance of SupplementalDocuments.
-
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::EntitySupplementalDocument>
List Entity Supplemental Document Submissions.
Constructor Details
#initialize(client:) ⇒ SupplementalDocuments
Returns a new instance of SupplementalDocuments.
6 7 8 |
# File 'lib/increase/resources/supplemental_documents.rb', line 6 def initialize(client:) @client = client end |
Instance Method Details
#create(params = {}, opts = {}) ⇒ Increase::Models::EntitySupplementalDocument
Create a supplemental document for an Entity
19 20 21 22 23 24 25 26 |
# File 'lib/increase/resources/supplemental_documents.rb', line 19 def create(params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/entity_supplemental_documents" req[:body] = params req[:model] = Increase::Models::EntitySupplementalDocument @client.request(req, opts) end |
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::EntitySupplementalDocument>
List Entity Supplemental Document Submissions
43 44 45 46 47 48 49 50 51 |
# File 'lib/increase/resources/supplemental_documents.rb', line 43 def list(params = {}, opts = {}) req = {} req[:method] = :get req[:path] = "/entity_supplemental_documents" req[:query] = params req[:page] = Increase::Page req[:model] = Increase::Models::EntitySupplementalDocument @client.request(req, opts) end |