diff options
author | Mark Wells <mark@freeside.biz> | 2015-03-13 17:46:07 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-03-13 17:46:07 -0700 |
commit | f81bdf93c112e3222ba9f0be2477fd3403fdc9f5 (patch) | |
tree | 4ff358e158c1c5c319d3a240e66ce019fba0e956 /Geocoding/Result.pm | |
parent | 9c5e55dee57384a1210044f95f459de72ce063f5 (diff) |
allow Moo < 1.0
Diffstat (limited to 'Geocoding/Result.pm')
-rw-r--r-- | Geocoding/Result.pm | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/Geocoding/Result.pm b/Geocoding/Result.pm index e0e271a..bf595ca 100644 --- a/Geocoding/Result.pm +++ b/Geocoding/Result.pm @@ -3,17 +3,19 @@ package Geo::USCensus::Geocoding::Result; use Moo; # just for attribute declaration has 'is_match' => ( is => 'rw', default => 0 ); -has [ 'content', - 'match_level', - 'address', - 'state', - 'county', - 'tract', - 'block', - 'error_message', - 'latitude', - 'longitude' - ] => ( is => 'rw', default => '' ); +foreach ( 'content', + 'match_level', + 'address', + 'state', + 'county', + 'tract', + 'block', + 'error_message', + 'latitude', + 'longitude' + ) { + has $_ => ( is => 'rw', default => '' ); +} sub censustract { my $self = shift; |