@@ -84,8 +84,8 @@ def to_h
8484 end
8585
8686 # @return [String]
87- def to_json ( *args )
88- to_h . to_json ( *args )
87+ def to_json ( *)
88+ to_h . to_json ( *)
8989 end
9090
9191 # Prepare {MatchQuery} body
@@ -1128,8 +1128,8 @@ def to_h
11281128 end
11291129
11301130 # @api private
1131- def to_json ( *args )
1132- to_h . to_json ( *args )
1131+ def to_json ( *)
1132+ to_h . to_json ( *)
11331133 end
11341134 end
11351135
@@ -1173,8 +1173,8 @@ def initialize
11731173 end
11741174
11751175 # @api private
1176- def to_json ( *args )
1177- { by : :score , desc : desc } . to_json ( *args )
1176+ def to_json ( *)
1177+ { by : :score , desc : desc } . to_json ( *)
11781178 end
11791179 end
11801180
@@ -1189,8 +1189,8 @@ def initialize
11891189 end
11901190
11911191 # @api private
1192- def to_json ( *args )
1193- { by : :id , desc : desc } . to_json ( *args )
1192+ def to_json ( *)
1193+ { by : :id , desc : desc } . to_json ( *)
11941194 end
11951195 end
11961196
@@ -1219,8 +1219,8 @@ def initialize(field)
12191219 end
12201220
12211221 # @api private
1222- def to_json ( *args )
1223- { by : :field , field : field , desc : desc , type : type , missing : missing , mode : mode } . to_json ( *args )
1222+ def to_json ( *)
1223+ { by : :field , field : field , desc : desc , type : type , missing : missing , mode : mode } . to_json ( *)
12241224 end
12251225 end
12261226
@@ -1253,8 +1253,8 @@ def initialize(field, longitude, latitude)
12531253 end
12541254
12551255 # @api private
1256- def to_json ( *args )
1257- { by : :geo_distance , field : field , desc : desc , location : [ longitude , latitude ] , unit : unit } . to_json ( *args )
1256+ def to_json ( *)
1257+ { by : :geo_distance , field : field , desc : desc , location : [ longitude , latitude ] , unit : unit } . to_json ( *)
12581258 end
12591259 end
12601260 end
@@ -1292,8 +1292,8 @@ def initialize(field)
12921292 end
12931293
12941294 # @api private
1295- def to_json ( *args )
1296- { field : field , size : size } . to_json ( *args )
1295+ def to_json ( *)
1296+ { field : field , size : size } . to_json ( *)
12971297 end
12981298 end
12991299
@@ -1319,8 +1319,8 @@ def add(name, min, max)
13191319 end
13201320
13211321 # @api private
1322- def to_json ( *args )
1323- { field : field , size : size , numeric_ranges : @ranges } . to_json ( *args )
1322+ def to_json ( *)
1323+ { field : field , size : size , numeric_ranges : @ranges } . to_json ( *)
13241324 end
13251325 end
13261326
@@ -1351,8 +1351,8 @@ def add(name, start_time, end_time)
13511351 end
13521352
13531353 # @api private
1354- def to_json ( *args )
1355- { field : field , size : size , date_ranges : @ranges } . to_json ( *args )
1354+ def to_json ( *)
1355+ { field : field , size : size , date_ranges : @ranges } . to_json ( *)
13561356 end
13571357 end
13581358 end
0 commit comments