John Ingram > Data-Maker-Field-Currency-0.23 > Data::Maker::Field::Currency

Download:
Data-Maker-Field-Currency-0.23.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.22   Source  

NAME ^

Data::Maker::Field::Currency - A Data::Maker 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 Data::Maker::Field::Number, 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.

syntax highlighting: