File Coverage

blib/lib/Audio/MPD/Common/Item/Directory.pm
Criterion Covered Total %
statement 10 12 83.3
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 14 16 87.5


line stmt bran cond sub pod time code
1             #
2             # This file is part of Audio-MPD-Common
3             #
4             # This software is copyright (c) 2007 by Jerome Quelin.
5             #
6             # This is free software; you can redistribute it and/or modify it under
7             # the same terms as the Perl 5 programming language system itself.
8             #
9 1     1   12 use 5.008;
  1         3  
  1         36  
10 1     1   4 use strict;
  1         1  
  1         27  
11 1     1   4 use warnings;
  1         2  
  1         34  
12              
13             package Audio::MPD::Common::Item::Directory;
14             # ABSTRACT: a directory object
15             $Audio::MPD::Common::Item::Directory::VERSION = '2.002';
16 1     1   1657 use Moose;
  0            
  0            
17             use MooseX::Has::Sugar;
18             use MooseX::Types::Moose qw{ Str };
19              
20             use base qw{ Audio::MPD::Common::Item };
21              
22              
23             # -- public attributes
24              
25              
26             has directory => ( rw, isa=>Str, required );
27             has last_modified => ( rw, isa=>Str );
28              
29             1;
30              
31             __END__
32              
33             =pod
34              
35             =encoding UTF-8
36              
37             =head1 NAME
38              
39             Audio::MPD::Common::Item::Directory - a directory object
40              
41             =head1 VERSION
42              
43             version 2.002
44              
45             =head1 DESCRIPTION
46              
47             L<Audio::MPD::Common::Item::Directory> is more a placeholder with some
48             attributes.
49              
50             The constructor should only be called by L<Audio::MPD::Common::Item>'s
51             constructor.
52              
53             =head1 ATTRIBUTES
54              
55             =head2 $item->directory;
56              
57             The path to the item's directory.
58              
59             =head2 $item->last_modified;
60              
61             Last modification date.
62              
63             =head1 AUTHOR
64              
65             Jerome Quelin
66              
67             =head1 COPYRIGHT AND LICENSE
68              
69             This software is copyright (c) 2007 by Jerome Quelin.
70              
71             This is free software; you can redistribute it and/or modify it under
72             the same terms as the Perl 5 programming language system itself.
73              
74             =cut