Eve/Item.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 20 / 20 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Eve/HttpResponse.pm ↑ Summary Eve/Item/Entry.pm »
1 package Eve::Item;
2  
3 3 ▶use parent qw(Eve::Class);
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 3 ▶use Eve::Exception;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 =head1 NAME
11  
12 B<Eve::Item> - a base class for item classes.
13  
14 =head1 SYNOPSIS
15  
16 package Eve::Item::Foo;
17  
18 use parent qw(Eve::Item);
19  
20 sub init {
21 my ($self, %arg_hash) = @_;
22 my $rest_hash = Eve::Support::arguments(
23 \%arg_hash, my $some_attribute);
24 $self->SUPER::init(%{$rest_hash});
25  
26 $self->{'some_attribute'} = $some_attribute;
27 }
28  
29 1;
30  
31 my $foo = Eve::Item::Foo->new(
32 some_attribute => 'some value',
33 some_super_attribute => 'super value');
34  
35 print $foo->some_attribute, $foo->some_super_attribute
36  
37 =head1 DESCRIPTION
38  
39 B<Eve::Item> is a base class for item classes. It is assumed to
40 represent the data part of an object.
41  
42 =head1 METHODS
43  
44 =head2 B<eq()>
45  
46 =head3 Arguments
47  
48 =over 4
49  
50 =item C<item>
51  
52 a C<Eve::Item> derivative object that needs to be compared with the
53 current one.
54  
55 =back
56  
57 =cut
58  
59 2 ▶sub eq {
Subroutine eq: called CC=1 SCAR=0.0
Pod documented
60 2 Eve::Error::NotImplemented->throw();
61 }
62  
63 =head1 SEE ALSO
64  
65 =over 4
66  
67 =item L<Eve::Class>
68  
69 =item L<Eve::Exception>
70  
71 =back
72  
73 =head1 LICENSE AND COPYRIGHT
74  
75 Copyright 2012 Igor Zinovyev.
76  
77 This program is free software; you can redistribute it and/or modify it
78 under the terms of either: the GNU General Public License as published
79 by the Free Software Foundation; or the Artistic License.
80  
81 See http://dev.perl.org/licenses/ for more information.
82  
83  
84 =head1 AUTHOR
85  
86 =over 4
87  
88 =item L<Igor Zinovyev|mailto:zinigor@gmail.com>
89  
90 =back
91  
92 =cut
93  
94 3 1;
« Eve/HttpResponse.pm ↑ Summary Eve/Item/Entry.pm »