Created
November 3, 2012 21:56
-
-
Save xenoterracide/4008988 to your computer and use it in GitHub Desktop.
injectable example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sub _build_cybs_wsdl { | |
| my $self = shift; | |
| my $dir = $self->_production ? 'production' : 'test'; | |
| load 'File::ShareDir::ProjectDistDir', 'dist_file'; | |
| return load_class('Path::Class::File')->new( | |
| dist_file( | |
| 'Business-CyberSource', | |
| $dir | |
| . '/' | |
| . 'CyberSourceTransaction_' | |
| . $self->cybs_api_version | |
| . '.wsdl' | |
| ) | |
| ); | |
| } | |
| has cybs_wsdl => ( | |
| required => 0, | |
| lazy => 1, | |
| is => 'ro', | |
| isa => File, | |
| builder => '_build_cybs_wsdl', | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment