Skip to content

Instantly share code, notes, and snippets.

@three18ti
Created July 10, 2012 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save three18ti/3085642 to your computer and use it in GitHub Desktop.
Save three18ti/3085642 to your computer and use it in GitHub Desktop.
package App::SmarterMail::Parser::Thread;
use 5.014;
use Moose;
has 'thread_id' => (
is => 'rw',
isa => 'Int',
);
has 'thread_body' => (
is => 'rw',
isa => 'ArrayRef[Str]',
);
subtype 'start_time',
as 'DateTime',
where { /\d{2}:\d{2}:\d{2}/};
coerce 'start_time',
from 'Str',
via {
}
no Moose;
__PACKAGE__->meta->make_immutable;
1; # End of Kayako3::Staff
__END__
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment