Class: Inttegro::Resources::FileReferences
- Inherits:
-
Object
- Object
- Inttegro::Resources::FileReferences
- Defined in:
- lib/inttegro/resources/file_references.rb
Overview
Client for reconciling the files referenced by another Inttegro resource.
Access this resource through Client#file_references.
Instance Method Summary collapse
-
#initialize(http) ⇒ FileReferences
constructor
A new instance of FileReferences.
-
#reconcile(payload) ⇒ Inttegro::FileReference::Reconciliation
Replace the complete set of live file references for one resource.
Constructor Details
#initialize(http) ⇒ FileReferences
Returns a new instance of FileReferences.
11 12 13 |
# File 'lib/inttegro/resources/file_references.rb', line 11 def initialize(http) @http = T.let(http, Inttegro::HTTPClient) end |
Instance Method Details
#reconcile(payload) ⇒ Inttegro::FileReference::Reconciliation
Replace the complete set of live file references for one resource.
19 20 21 22 23 24 25 |
# File 'lib/inttegro/resources/file_references.rb', line 19 def reconcile(payload) @http.post_model( "/file_references/reconcile", Inttegro::FileReference::Reconciliation, payload ) end |