[Bps-public-commit] net-lighthouse branch, master, updated. ddb7c563f41f9a45b92dbaaaac3c6463e6796d28
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Mon Aug 31 02:11:32 EDT 2009
The branch, master has been updated
via ddb7c563f41f9a45b92dbaaaac3c6463e6796d28 (commit)
from 5b8a8b4c863e4f7d3ed3f36d0fe5c56c8bc0d99b (commit)
Summary of changes:
lib/Net/Lighthouse/Project/Ticket/Attachment.pm | 20 +++++++++++++-------
1 files changed, 13 insertions(+), 7 deletions(-)
- Log -----------------------------------------------------------------
commit ddb7c563f41f9a45b92dbaaaac3c6463e6796d28
Author: sunnavy <sunnavy at bestpractical.com>
Date: Mon Aug 31 14:11:21 2009 +0800
update ticket attachment attrs
diff --git a/lib/Net/Lighthouse/Project/Ticket/Attachment.pm b/lib/Net/Lighthouse/Project/Ticket/Attachment.pm
index 6a87dd1..b9649ea 100644
--- a/lib/Net/Lighthouse/Project/Ticket/Attachment.pm
+++ b/lib/Net/Lighthouse/Project/Ticket/Attachment.pm
@@ -5,14 +5,20 @@ use Params::Validate ':all';
use Net::Lighthouse::Util;
# read only attr
-has [
- 'width', 'created_at', 'height', 'size',
- 'content_type', 'uploader_id', 'filename', 'url',
- 'type', 'id', 'code'
- ] => (
- isa => 'Maybe[Str]',
+has [ 'created_at' ] => (
+ isa => 'DateTime',
is => 'ro',
- );
+);
+
+has [ 'width', 'height', 'size', 'uploader_id', 'id', ] => (
+ isa => 'Maybe[Int]',
+ is => 'ro',
+);
+
+has [ 'content_type', 'filename', 'url', 'type', 'code' ] => (
+ isa => 'Str',
+ is => 'ro',
+);
no Any::Moose;
__PACKAGE__->meta->make_immutable;
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list