| 1 | package Interchange6::Schema::Populate::MessageType; | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | Interchange6::Schema::Populate::MessageType | ||
| 6 | |||
| 7 | =head1 DESCRIPTION | ||
| 8 | |||
| 9 | This module provides population capabilities for the MessageType schema | ||
| 10 | |||
| 11 | =cut | ||
| 12 | |||
| 13 | 4 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | =head1 METHODS | ||
| 16 | |||
| 17 | =head2 records | ||
| 18 | |||
| 19 | Returns array reference containing one hash reference per message type ready to use with populate schema method. | ||
| 20 | |||
| 21 | =cut | ||
| 22 | |||
| 23 | sub records { | ||
| 24 | |||
| 25 | 3 | ▶ | my @types = qw( blog_post order_comment product_review wiki_node ); |
|
Subroutine
records: called CC=1 SCAR=0.0
Pod
documented
| |||
| 26 | |||
| 27 | 3 | return [ map { { name => $_ } } @types ]; | |
| 28 | } | ||
| 29 | |||
| 30 | 4 | 1; | |