module Elasticsearch::API

Constants

COMMON_PARAMS
COMMON_QUERY_PARAMS
DEFAULT_SERIALIZER
HTTP_DELETE
HTTP_GET
HTTP_HEAD
HTTP_POST
HTTP_PUT
UNDERSCORE_ALL
VERSION

Public Class Methods

included(base) click to toggle source

Auto-include all namespaces in the receiver

# File lib/elasticsearch/api.rb, line 42
def self.included(base)
  base.send :include,
            Elasticsearch::API::Common,
            Elasticsearch::API::Actions,
            Elasticsearch::API::Cluster,
            Elasticsearch::API::Nodes,
            Elasticsearch::API::Indices,
            Elasticsearch::API::Ingest,
            Elasticsearch::API::Snapshot,
            Elasticsearch::API::Tasks,
            Elasticsearch::API::Cat
end
serializer() click to toggle source

The serializer class

# File lib/elasticsearch/api.rb, line 57
def self.serializer
  settings[:serializer] || DEFAULT_SERIALIZER
end
settings() click to toggle source

Access the module settings

# File lib/elasticsearch/api.rb, line 63
def self.settings
  @settings ||= {}
end