Module: Knodes::Client::Documents

Included in:
Knodes::Client
Defined in:
lib/knodes/client/documents.rb

Instance Method Summary collapse

Instance Method Details

#document(options = {}) ⇒ Object



4
5
6
# File 'lib/knodes/client/documents.rb', line 4

def document(options={})
  response = get("documents/#{options[:doc_id]}", options.merge(creds))
end

#document_locations(options = {}) ⇒ Object



16
17
18
# File 'lib/knodes/client/documents.rb', line 16

def document_locations(options={})
  response = get("documents/#{options[:doc_id]}/locations", options.merge(creds))
end

#document_people(options = {}) ⇒ Object



12
13
14
# File 'lib/knodes/client/documents.rb', line 12

def document_people(options={})
  response = get("documents/#{options[:doc_id]}/people", options.merge(creds))
end

#documents_search(options = {}) ⇒ Object



8
9
10
# File 'lib/knodes/client/documents.rb', line 8

def documents_search(options={})
  response = get("documents/search", options.merge(creds))
end