Skip to content

Commit 68a9ffa

Browse files
author
Kevin Kirsche
committed
Change all predicate methods
1 parent 6565c83 commit 68a9ffa

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/exists.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module Actions
66
#
77
# @example
88
#
9-
# client.exists index: 'myindex', type: 'mytype', id: '1'
9+
# client.exists? index: 'myindex', type: 'mytype', id: '1'
1010
#
1111
# @option arguments [String] :id The document ID (*Required*)
1212
# @option arguments [String] :index The name of the index (*Required*)
@@ -20,7 +20,7 @@ module Actions
2020
#
2121
# @see http://elasticsearch.org/guide/reference/api/get/
2222
#
23-
def exists(arguments={})
23+
def exists?(arguments={})
2424
raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
2525
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
2626
arguments[:type] ||= UNDERSCORE_ALL

elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_alias.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module Actions
77
#
88
# @example Check whether index alias named _myalias_ exists
99
#
10-
# client.indices.exists_alias name: 'myalias'
10+
# client.indices.exists_alias? name: 'myalias'
1111
#
1212
# @option arguments [List] :index A comma-separated list of index names to filter aliases
1313
# @option arguments [List] :name A comma-separated list of alias names to return
@@ -25,7 +25,7 @@ module Actions
2525
#
2626
# @see http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/
2727
#
28-
def exists_alias(arguments={})
28+
def exists_alias?(arguments={})
2929
valid_params = [
3030
:ignore_indices,
3131
:ignore_unavailable,

elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_type.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module Actions
2222
#
2323
# @see http://www.elasticsearch.org/guide/reference/api/admin-indices-types-exists/
2424
#
25-
def exists_type(arguments={})
25+
def exists_type?(arguments={})
2626
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
2727
raise ArgumentError, "Required argument 'type' missing" unless arguments[:type]
2828
valid_params = [

0 commit comments

Comments
 (0)