Allie Gator > Business-OnlinePayment-CyberSource-3.000009 > Business::OnlinePayment::CyberSource::Role::InputHandling

Download:
Business-OnlinePayment-CyberSource-3.000009.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 3.000009   Source   Latest Release: Business-OnlinePayment-CyberSource-3.000016

NAME ^

Business::OnlinePayment::CyberSource::Role::InputHandling - Input handling convenience methods for Business::OnlinePayment::CyberSource

VERSION ^

version 3.000009

SYNOPSIS ^

  package Thing;

  use Moose;

  with 'Business::OnlinePayment::CyberSource::Role::InputHandling';

  sub blah {
        my ( $self, @args ) = @_;
                my $data = $self->_parse_input( @args );

        $data->{color} = 'red' unless $data->{color};
  }
         1;

  my $thing = Thing->new();

  $thing->blah( color => 'blue' );
  $thing->blah( { color => 'blue' } );

DESCRIPTION ^

This role provides consumers with convenience methods for handling input.

METHODS ^

_parse_input

Converts input into a hashref

Accepts: A hash or reference to a hash Returns: A reference to the supplied hash

BUGS ^

Please report any bugs or feature requests on the bugtracker website https://github.com/hgdev/Business-OnlinePayment-CyberSource/issues

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHORS ^

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2012 by Hostgator.com.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: