Changeset 1843
- Timestamp:
- 11/24/06 09:41:11
- Files:
-
- branches/feature-geo/plagger/deps/Namespace-GeoRSS.yaml (added)
- branches/feature-geo/plagger/lib/Plagger/Entry.pm (modified) (2 diffs)
- branches/feature-geo/plagger/lib/Plagger/Plugin/Namespace/GeoRSS.pm (added)
- branches/feature-geo/plagger/t/plugins/Namespace-GeoRSS (added)
- branches/feature-geo/plagger/t/plugins/Namespace-GeoRSS/base.t (added)
- branches/feature-geo/plagger/t/samples/gml-atom.xml (added)
- branches/feature-geo/plagger/t/samples/gml-rss.xml (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/feature-geo/plagger/lib/Plagger/Entry.pm
r1841 r1843 3 3 4 4 use base qw( Plagger::Thing ); 5 __PACKAGE__->mk_accessors(qw( tags link feed_link rate icon meta source language location));5 __PACKAGE__->mk_accessors(qw( tags link feed_link rate icon meta source language )); 6 6 __PACKAGE__->mk_text_accessors(qw( title author summary body )); 7 7 __PACKAGE__->mk_date_accessors(qw( date )); … … 106 106 } 107 107 108 sub location { 109 my $self = shift; 110 111 if (@_ == 2) { 112 my $location = Plagger::Location->new; 113 $location->latitude($_[0]); 114 $location->longitude($_[1]); 115 $self->{location} = $location; 116 } elsif (@_) { 117 $self->{location} = shift; 118 } 119 120 $self->{location}; 121 } 122 108 123 1; 109 124
