elasticsearch-ruby

https://github.com/elastic/elasticsearch-ruby

Ruby

Ruby integrations for Elasticsearch

Elasticsearch::Transport::Transport::Base#__raise_transport_error

Raise error specific for the HTTP response status or a generic server error

Source | Google | Stack overflow

Edit

git clone [email protected]:elastic/elasticsearch-ruby.git

cd elasticsearch-ruby

open elasticsearch-transport/lib/elasticsearch/transport/transport/base.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Elasticsearch--Transport--Transport--Base-__raise_transport_error-for-pr


# Commit to git

git add elasticsearch-transport/lib/elasticsearch/transport/transport/base.rbgit commit -m "better docs for Elasticsearch::Transport::Transport::Base#__raise_transport_error"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Elasticsearch--Transport--Transport--Base-__raise_transport_error-for-pr

hub pull-request


# Celebrate!