Skip to content

Commit 830bfbe

Browse files
committed
[DOCS] Updates README, client docs, yard in gitignore
1 parent 73fbc94 commit 830bfbe

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ Gemfile.lock
44
.DS_Store
55
tmp
66
*.log
7-
.env
7+
.env
8+
doc
9+
.yardoc

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,9 @@ The parameters are:
8989
| `tracer` | `Logger` | An instance of a Logger-compatible object to use as a tracer. |
9090
| `serializer_class` | `Object` | A specific serializer class to use to serialize JSON. |
9191
| `headers` | `Hash` | Custom HTTP Request Headers |
92-
93-
94-
9592
### Using the API
9693

97-
See [APIs](https://github.com/elastic/elasticsearch-serverless-ruby/blob/main/docs/apis.md) for the full list of available endpoints.
94+
See [APIs](https://github.com/elastic/elasticsearch-serverless-ruby/blob/main/docs/apis.md) for the full list of available endpoints. Check [rubydoc](https://rubydoc.info/gems/elasticsearch-serverless/) for the API reference, or run `yardoc` in the root of the project if you've checked out the code. The API reference documentation will be generated in the `doc` folder.
9895

9996
Once you've instantiated a client with your API key and Elasticsearch endpoint, you can start ingesting documents into Elasticsearch Service. You can use the **Bulk API** for this. This API allows you to index, update and delete several documents in one request. You call the `bulk` API on the client with a body parameter, an Array of hashes that define the action and a document. Here's an example of indexing some classic books into the `books` index:
10097

lib/elasticsearch-serverless.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ class Client
2727

2828
# Initializes an Elasticsearch Serverless Client
2929
#
30-
# @param :api_key [String] Base64 String, format used to authenticate with Elasticsearch
31-
# @param :url [String] Elasticsearch endpoint
32-
# @param :arguments [Hash] Other optional arguments.
30+
# @param [String] api_key Base64 String, format used to authenticate with Elasticsearch
31+
# @param [String] url Elasticsearch endpoint
32+
# @param [Hash] arguments Other optional arguments.
3333
# @option arguments [Symbol] :adapter A specific adapter for Faraday (e.g. `:patron`)
3434
# @option arguments [Boolean] :log Use the default logger (disabled by default)
3535
# @option arguments [Object] :logger An instance of a Logger-compatible object

0 commit comments

Comments
 (0)