Skip to content

Commit 935a401

Browse files
committed
Update some docs that are out of date
1 parent 60e1ea7 commit 935a401

4 files changed

Lines changed: 8 additions & 9 deletions

File tree

lib/maxmind/geoip2/record/anonymizer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def network_last_seen
9191
@network_last_seen = Date.parse(date_string)
9292
end
9393

94-
# The name of the VPN provider (e.g., NordVPN, SurfShark, etc.)
94+
# The name of the VPN provider (e.g., nordvpn, surfshark)
9595
# associated with the network. This property is only available from
9696
# Insights.
9797
#

lib/maxmind/geoip2/record/location.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def population_density
6363
get('population_density')
6464
end
6565

66-
# The time zone associated with location, as specified by the IANA Time
66+
# The time zone associated with the location, as specified by the IANA Time
6767
# Zone Database, e.g., "America/New_York". See
6868
# https://www.iana.org/time-zones.
6969
#

lib/maxmind/geoip2/record/traits.rb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ def autonomous_system_organization
4141
get('autonomous_system_organization')
4242
end
4343

44-
# The connection type may take the following values: "Dialup",
45-
# "Cable/DSL", "Corporate", "Cellular", and "Satellite". Additional
46-
# values may be added in the future. This attribute is only available
44+
# The connection type may take the following values: "Cable/DSL",
45+
# "Corporate", "Cellular", and "Satellite". Additional values may be
46+
# added in the future. This attribute is only available
4747
# from the City Plus and Insights web services and the Enterprise
4848
# database.
4949
#
@@ -52,7 +52,7 @@ def connection_type
5252
get('connection_type')
5353
end
5454

55-
# The second level domain associated with the IP address. This will be
55+
# The second-level domain associated with the IP address. This will be
5656
# something like "example.com" or "example.co.uk", not "foo.example.com".
5757
# This attribute is only available from the City Plus and Insights web
5858
# services and the Enterprise database.
@@ -266,7 +266,6 @@ def ip_risk_snapshot
266266
# * college
267267
# * consumer_privacy_network
268268
# * content_delivery_network
269-
# * dialup
270269
# * government
271270
# * hosting
272271
# * library

test/test_client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ClientTest < Minitest::Test
3737
'is_residential_proxy' => true,
3838
'is_tor_exit_node' => false,
3939
'network_last_seen' => '2025-10-15',
40-
'provider_name' => 'NordVPN',
40+
'provider_name' => 'nordvpn',
4141
},
4242
'continent' => {
4343
'code' => 'NA',
@@ -107,7 +107,7 @@ def test_insights
107107
assert(record.anonymizer.residential_proxy?)
108108
refute(record.anonymizer.tor_exit_node?)
109109
assert_equal(Date.parse('2025-10-15'), record.anonymizer.network_last_seen)
110-
assert_equal('NordVPN', record.anonymizer.provider_name)
110+
assert_equal('nordvpn', record.anonymizer.provider_name)
111111

112112
# Test traits
113113
assert(record.traits.anycast?)

0 commit comments

Comments
 (0)