Navigation Menu

Skip to content

Commit

Permalink
doc: update usages
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 27, 2017
1 parent 90e5af4 commit 24a53b4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/groonga/client/request/select.rb
Expand Up @@ -52,7 +52,7 @@ def query(value)
#
# @example Multiple filters
# request.
# filter("user", "alice").
# filter(:user, "alice").
# # -> --filter 'user == "alice"'
# filter("tags @ %{tag}", tag: "Ruby")
# # -> --filter '(user == "alice") && (tags @ "Ruby")'
Expand All @@ -63,7 +63,7 @@ def query(value)
# @overload filter(column_name, value)
# Adds a `#{column_name} == #{value}` condition.
#
# @param column_name [String, Symbol] The target column name.
# @param column_name [Symbol] The target column name.
#
# @param value [Object] The column value. It's escaped
# automatically.
Expand All @@ -90,17 +90,17 @@ def query(value)
#
# @example Use in_values function
# request.
# filter.in_values("tags", "tag1", "tag2")
# filter.in_values(:tags, "tag1", "tag2")
# # -> --filter 'in_values(tags, "tag1", "tag2")'
#
# @example Use geo_in_circle function
# request.
# filter.geo_in_circle("0x0", "100x100", 300)
# # -> --filter 'geo_in_circle("0x0", "100x100", 300, "rectangle")'
# filter.geo_in_circle(:location, "100x100", 300)
# # -> --filter 'geo_in_circle(location, "100x100", 300, "rectangle")'
#
# @example Use between function
# request.
# filter.between("age", 19, "include", 32, "include")
# filter.between(:age, 19, "include", 32, "include")
# # -> --filter 'between(age, 19, "include", 32, "include")'
#
# @return [Groonga::Client::Request::Select::Filter]
Expand Down

0 comments on commit 24a53b4

Please sign in to comment.