NAME

Data::Maker::Field::Set - A Data::Maker field class that generates its data based on a list of potential values.

SYNOPSIS

use Data::Maker;
use Data::Maker::Field::Set;

my $maker = Data::Maker->new(
  record_count => 10,
  fields => [
    {
      name => 'reindeer',
      class => 'Data::Maker::Field::Set',
      args => {
        set => [ 'Dasher', 'Dancer', 'Prancer', 'Vixen', 'Comet', 'Cupid', 'Donner', 'Blitzen' ]
      }
    }
  ]
);

DESCRIPTION

Data::Maker::Field::Set takes a single argument, set, whose value must be an array reference of potential values.

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.