File Coverage

blib/lib/Business/CyberSource/Response/Role/RequestDateTime.pm
Criterion Covered Total %
statement 21 21 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod n/a
total 28 28 100.0


line stmt bran cond sub pod time code
1             package Business::CyberSource::Response::Role::RequestDateTime;
2 1     1   611 use strict;
  1         2  
  1         24  
3 1     1   4 use warnings;
  1         1  
  1         21  
4 1     1   3 use namespace::autoclean;
  1         1  
  1         4  
5 1     1   42 use Module::Load qw( load );
  1         1  
  1         6  
6              
7             our $VERSION = '0.010007'; # VERSION
8              
9 1     1   57 use Moose::Role;
  1         2  
  1         6  
10 1     1   3315 use MooseX::RemoteHelper;
  1         1  
  1         8  
11 1     1   2566 use MooseX::Types::CyberSource qw( DateTimeFromW3C );
  1         2  
  1         8  
12              
13             has datetime => (
14             isa => DateTimeFromW3C,
15             remote_name => 'requestDateTime',
16             is => 'ro',
17             coerce => 1,
18             predicate => 'has_datetime',
19             );
20              
21             1;
22              
23             # ABSTRACT: Role to provide datetime attribute
24              
25             __END__
26              
27             =pod
28              
29             =encoding UTF-8
30              
31             =head1 NAME
32              
33             Business::CyberSource::Response::Role::RequestDateTime - Role to provide datetime attribute
34              
35             =head1 VERSION
36              
37             version 0.010007
38              
39             =head1 DESCRIPTION
40              
41             Several responses include a datetime that has a key name of C<requestDateTime>
42             this role is provided for those response sections.
43              
44             =head1 BUGS
45              
46             Please report any bugs or feature requests on the bugtracker website
47             https://github.com/xenoterracide/business-cybersource/issues
48              
49             When submitting a bug or request, please include a test-file or a
50             patch to an existing test-file that illustrates the bug or desired
51             feature.
52              
53             =head1 AUTHOR
54              
55             Caleb Cushing <xenoterracide@gmail.com>
56              
57             =head1 COPYRIGHT AND LICENSE
58              
59             This software is Copyright (c) 2016 by Caleb Cushing <xenoterracide@gmail.com>.
60              
61             This is free software, licensed under:
62              
63             The Artistic License 2.0 (GPL Compatible)
64              
65             =cut