Permalink
Browse files

use default property instead of lazy builder

to prevent empty string in CPAN test.
  • Loading branch information...
1 parent f65dbb5 commit 79dba89d3df0d1579e64ce20d13a058d83e218f9 @mateu committed Jul 25, 2011
Showing with 1 addition and 7 deletions.
  1. +1 −7 lib/Weather/Underground/Forecast.pm
View
8 lib/Weather/Underground/Forecast.pm
@@ -58,7 +58,7 @@ has 'raw_data' => (
has 'source_URL' => (
is => 'ro',
isa => 'Any',
- lazy_build => 1,
+ 'default' => 'http://api.wunderground.com/auto/wui/geo/ForecastXML/index.xml?query=',
);
# When the location changes, we want to clear the data to insure a new data fetch will happen.
@@ -192,12 +192,6 @@ sub _build_raw_data {
return $content;
}
-sub _build_source_URL {
- my $self = shift;
- return
- 'http://api.wunderground.com/auto/wui/geo/ForecastXML/index.xml?query=';
-}
-
__PACKAGE__->meta->make_immutable;
1

0 comments on commit 79dba89

Please sign in to comment.