Class: Sink::Resources::Names::Documents

Inherits:
Object
  • Object
show all
Defined in:
lib/sink/resources/names/documents.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Documents

Returns a new instance of Documents.

Parameters:



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.

Parameters:

  • opts (Hash, Sink::RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:



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