From: Matt S Trout Date: Fri, 15 May 2009 18:11:57 +0000 (+0100) Subject: add 'url' attribute to Post.pm (tests fail, will fixup) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=283b84e94643a4d2018aab54d4f3312c0aaf46c6;p=engit%2FIron-Munger.git add 'url' attribute to Post.pm (tests fail, will fixup) --- diff --git a/lib/IronMunger/Post.pm b/lib/IronMunger/Post.pm index 2b43897..0a0057e 100644 --- a/lib/IronMunger/Post.pm +++ b/lib/IronMunger/Post.pm @@ -2,9 +2,12 @@ use MooseX::Declare; class IronMunger::Post { + use MooseX::Types::Moose qw(Str); use MooseX::Types::DateTimeX qw(DateTime); - has at => (isa => DateTime, is => 'rw', required => 1); + has at => (isa => DateTime, is => 'ro', required => 1); + + has url => (isa => Str, is => 'ro', required => 1); } 1;