[Bps-public-commit] r17425 - in Net-Google-Code/trunk: lib/Net/Google/Code

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue Dec 30 04:51:41 EST 2008


Author: sunnavy
Date: Tue Dec 30 04:51:40 2008
New Revision: 17425

Modified:
   Net-Google-Code/trunk/   (props changed)
   Net-Google-Code/trunk/lib/Net/Google/Code/Ticket.pm

Log:
 r18348 at sunnavys-mb:  sunnavy | 2008-12-30 10:49:54 +0800
 set id in state


Modified: Net-Google-Code/trunk/lib/Net/Google/Code/Ticket.pm
==============================================================================
--- Net-Google-Code/trunk/lib/Net/Google/Code/Ticket.pm	(original)
+++ Net-Google-Code/trunk/lib/Net/Google/Code/Ticket.pm	Tue Dec 30 04:51:40 2008
@@ -3,11 +3,6 @@
 use Params::Validate qw(:all);
 use Net::Google::Code::TicketComment;
 
-has id => (
-    isa => 'Int',
-    is  => 'rw',
-);
-
 has connection => (
     isa => 'Net::Google::Code::Connection',
     is  => 'ro',
@@ -32,7 +27,7 @@
     default => sub { [] },
 );
 
-our @PROPS = qw(status owner closed cc summary reporter description);
+our @PROPS = qw(id status owner closed cc summary reporter description);
 
 for my $prop (@PROPS) {
     no strict 'refs'; ## no critic
@@ -46,6 +41,7 @@
 sub load {
     my $self = shift;
     my ($id) = validate_pos( @_, { type => SCALAR } );
+    $self->state->{id} = $id;
     $self->connection->_fetch( "/issues/detail?id=" . $id );
 
     my $content = $self->connection->mech->content;



More information about the Bps-public-commit mailing list