[Bps-public-commit] r12430 - in Prophet/branches/moose: .

sartak at bestpractical.com sartak at bestpractical.com
Sat May 17 05:02:28 EDT 2008


Author: sartak
Date: Sat May 17 05:02:28 2008
New Revision: 12430

Modified:
   Prophet/branches/moose/   (props changed)
   Prophet/branches/moose/lib/Prophet/ChangeSet.pm

Log:
 r56139 at onn:  sartak | 2008-05-17 04:44:54 -0400
 Begin moosifying ChangeSet.. the changes attribute is the snag


Modified: Prophet/branches/moose/lib/Prophet/ChangeSet.pm
==============================================================================
--- Prophet/branches/moose/lib/Prophet/ChangeSet.pm	(original)
+++ Prophet/branches/moose/lib/Prophet/ChangeSet.pm	Sat May 17 05:02:28 2008
@@ -1,8 +1,29 @@
-use warnings;
-use strict;
-
 package Prophet::ChangeSet;
-use base qw/Class::Accessor/;
+use Moose;
+
+has sequence_no => (
+    is => 'rw',
+);
+
+has source_uuid => (
+    is => 'rw',
+);
+
+has original_source_uuid => (
+    is => 'rw',
+);
+
+has original_sequence_no => (
+    is => 'rw',
+);
+
+has is_nullification => (
+    is => 'rw',
+);
+
+has is_resolution => (
+    is => 'rw',
+);
 
 =head1 NAME
 
@@ -21,9 +42,6 @@
 
 =cut
 
-__PACKAGE__->mk_accessors(
-    qw/sequence_no source_uuid original_source_uuid original_sequence_no is_nullification  is_resolution/);
-
 =head2 new
 
 Instantiate a new, empty L<Prophet::ChangeSet> object.
@@ -119,4 +137,7 @@
     return $self;
 }
 
+__PACKAGE__->meta->make_immutable;
+no Moose;
+
 1;



More information about the Bps-public-commit mailing list