Class: Weaviate::Nodes
- Defined in:
- lib/weaviate/nodes.rb,
sig/weaviate.rbs
Constant Summary collapse
- PATH =
"nodes"
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Weaviate::Base
Instance Method Details
#list(output: nil, class_name: nil, shard_name: nil) ⇒ json
10 11 12 13 14 15 16 17 18 |
# File 'lib/weaviate/nodes.rb', line 10 def list(output: nil, class_name: nil, shard_name: nil) path = class_name.nil? ? PATH : "#{PATH}/#{class_name}" response = client.connection.get(path) do |req| req.params["output"] = output unless output.nil? req.params["shardName"] = shard_name unless shard_name.nil? end response.body end |