Mercurial > pub > buggler
view lib/Benzin/Bugzilla/BugComment.pm @ 10:14a966369278
working version of exporting bugs from bugzilla in tj3 format (without bookings)
author | cin |
---|---|
date | Mon, 07 Sep 2015 01:37:11 +0300 |
parents | cc7244ab1b9f |
children |
line wrap: on
line source
package Benzin::Bugzilla::BugComment; use strict; my @fields; BEGIN { @fields = qw( id bug_id attachment_id count text creator creation_time is_private is_markdown ); } use constant { COMMENT_FIELDS => \@fields }; use IMPL::declare { base => [ 'IMPL::Object::Fields' => undef ] }; use fields @fields; sub CTOR { my SELF $this = shift; my $data = shift; $this->{$_} = $data->{$_} foreach grep exists $data->{$_}, @{ SELF->COMMENT_FIELDS }; } 1;