Module: Elastic
- Defined in:
- lib/elasticsearch-serverless.rb
Constant Summary collapse
- ES_SERVERLESS_SERVICE_VERSION =
[:esv, ].freeze
Class Method Summary collapse
-
.client_meta_version ⇒ Object
If the version is X.X.X.pre/alpha/beta, use X.X.Xp for the meta-header:.
Class Method Details
.client_meta_version ⇒ Object
If the version is X.X.X.pre/alpha/beta, use X.X.Xp for the meta-header:
106 107 108 109 110 |
# File 'lib/elasticsearch-serverless.rb', line 106 def self. return "#{ElasticsearchServerless::CLIENT_VERSION}p" if ElasticsearchServerless::VERSION.match(/[a-z]+/) ElasticsearchServerless::CLIENT_VERSION end |