Skip to content

Commit 93402c7

Browse files
committed
method comments
1 parent bf532b8 commit 93402c7

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

lib/mongo/client.rb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,6 +1197,14 @@ def timeout_sec
11971197

11981198
private
11991199

1200+
# Attempts to parse the given list of addresses, using the provided options.
1201+
#
1202+
# @param [ String | Array<String> ] addresses the list of addresses
1203+
# @param [ Hash ] options the options that may drive how the list is
1204+
# processed.
1205+
#
1206+
# @return [ Hash<:uri, :addresses, :options> ] the results of processing the
1207+
# list of addresses.
12001208
def process_addresses(addresses, options)
12011209
if addresses.is_a?(String)
12021210
process_addresses_string(addresses, options)
@@ -1205,6 +1213,14 @@ def process_addresses(addresses, options)
12051213
end
12061214
end
12071215

1216+
# Attempts to parse the given list of addresses, using the provided options.
1217+
#
1218+
# @param [ String ] addresses the list of addresses
1219+
# @param [ Hash ] options the options that may drive how the list is
1220+
# processed.
1221+
#
1222+
# @return [ Hash<:uri, :addresses, :options> ] the results of processing the
1223+
# list of addresses.
12081224
def process_addresses_string(addresses, options)
12091225
{}.tap do |processed|
12101226
processed[:uri] = uri = URI.get(addresses, options)
@@ -1225,6 +1241,14 @@ def process_addresses_string(addresses, options)
12251241
end
12261242
end
12271243

1244+
# Attempts to parse the given list of addresses, using the provided options.
1245+
#
1246+
# @param [ Array<String> ] addresses the list of addresses
1247+
# @param [ Hash ] options the options that may drive how the list is
1248+
# processed.
1249+
#
1250+
# @return [ Hash<:uri, :addresses, :options> ] the results of processing the
1251+
# list of addresses.
12281252
def process_addresses_array(addresses, options)
12291253
{}.tap do |processed|
12301254
processed[:addresses] = addresses

0 commit comments

Comments
 (0)