Class: Sink::Resources::Names::Documents
- Inherits:
-
Object
- Object
- Sink::Resources::Names::Documents
- Defined in:
- lib/sink/resources/names/documents.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Documents
constructor
A new instance of Documents.
-
#retrieve(opts = {}) ⇒ Sink::Models::Documents
Endpoint with a response model that can clash with the resource class in Python.
Constructor Details
#initialize(client:) ⇒ Documents
Returns a new instance of Documents.
8 9 10 |
# File 'lib/sink/resources/names/documents.rb', line 8 def initialize(client:) @client = client end |
Instance Method Details
#retrieve(opts = {}) ⇒ Sink::Models::Documents
Endpoint with a response model that can clash with the resource class in Python.
17 18 19 20 21 22 23 24 |
# File 'lib/sink/resources/names/documents.rb', line 17 def retrieve(opts = {}) req = { method: :post, path: "/names/model_import_clash_with_resource", model: Sink::Models::Documents } @client.request(req, opts) end |