Data::Maker::Field::Currency - A L<Data::Maker> field class used for generating random currency values.


NAME

Data::Maker::Field::Currency - A the Data::Maker manpage field class used for generating random currency values.


SYNOPSIS

  use Data::Maker;
  use Data::Maker::Field::Currency;
  
  my $maker = Data::Maker->new(
    record_count => 10,
    fields => [
      {
        name => 'price',
        class => 'Data::Maker::Field::Currency',
        args => {
          min => 200,
          max => 3000,
          iso_code => 'USD'
        }
      }
    ]
  );


DESCRIPTION

Data::Maker::Field::Currency is a subclass of the Data::Maker::Field::Number manpage, with the precision attribute set to 2 and the separate_thousands attribute defined as true.

This class also supports the following Moose attributes:


AUTHOR

John Ingram (john@funnycow.com)


LICENSE

Copyright 2010 by John Ingram. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

 Data::Maker::Field::Currency - A L<Data::Maker> field class used for generating random currency values.