Business/CyberSource/Factory/Rule.pm

filter: Statementstmt 94.1% 16 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod n/a totaltotal 90.9% 20 / 22 CC 1 SCAR 0.2
CC
1
Cov
94%
__ANON__
1.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Business/CyberSource/Factory/Request.pm ↑ Summary Business/CyberSource.pm »
1 package Business::CyberSource::Factory::Rule;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 our $VERSION = '0.010007'; # VERSION
7  
8 1 ▶use MooseX::AbstractFactory;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 0 ▶implementation_class_via sub { 'Business::CyberSource::Rule::' . shift};
Subroutine __ANON__: not called CC=1 SCAR=1.2
11  
12 1 __PACKAGE__->meta->make_immutable;
13 1 1;
14 # ABSTRACT: CyberSource Rule Factory Module
15  
16 __END__
17  
18 =pod
19  
20 =encoding UTF-8
21  
22 =head1 NAME
23  
24 Business::CyberSource::Factory::Rule - CyberSource Rule Factory Module
25  
26 =head1 VERSION
27  
28 version 0.010007
29  
30 =head1 METHODS
31  
32 =head2 create
33  
34 takes the name of an object in C<Business::CyberSource::Rule::> namespace as
35 the first parameter, then the client object, passed as a hashref to the rule
36 constructor.
37  
38 $factory->create( 'ExpiredCard', { client => $self } ),
39  
40 =head1 BUGS
41  
42 Please report any bugs or feature requests on the bugtracker website
43 https://github.com/xenoterracide/business-cybersource/issues
44  
45 When submitting a bug or request, please include a test-file or a
46 patch to an existing test-file that illustrates the bug or desired
47 feature.
48  
49 =head1 AUTHOR
50  
51 Caleb Cushing <xenoterracide@gmail.com>
52  
53 =head1 COPYRIGHT AND LICENSE
54  
55 This software is Copyright (c) 2016 by Caleb Cushing <xenoterracide@gmail.com>.
56  
57 This is free software, licensed under:
58  
59 The Artistic License 2.0 (GPL Compatible)
60  
61 =cut
« Business/CyberSource/Factory/Request.pm ↑ Summary Business/CyberSource.pm »