Skip to content

Commit c37cffb

Browse files
committed
Deprecate metro code
1 parent bd2fb16 commit c37cffb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
* Ruby 3.0+ is now required. If you're using Ruby 2.5, 2.6, or 2.7, please
66
use version 1.2.0 of this gem.
7+
* Deprecated `metro_code` on `MaxMind::GeoIP2::Record::Location`. The code
8+
values are no longer being maintained.
79

810
## 1.2.0 (2023-12-04)
911

lib/maxmind/geoip2/record/location.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ def longitude
4646
get('longitude')
4747
end
4848

49-
# The metro code of the location if the location is in the US. MaxMind
50-
# returns the same metro codes as the Google AdWords API. See
51-
# https://developers.google.com/adwords/api/docs/appendix/cities-DMAregions.
49+
# The metro code is a no-longer-maintained code for targeting
50+
# advertisements in Google.
5251
#
5352
# @return [Integer, nil]
53+
# @deprecated Code values are no longer maintained.
5454
def metro_code
5555
get('metro_code')
5656
end

0 commit comments

Comments
 (0)