| 1 | package DBIO::Test::MooCakeSchema::ResultSet::Artist; | ||
| 2 | # ABSTRACT: Custom Moo-based ResultSet for the MooCake artist source | ||
| 3 | |||
| 4 | 3 | our $VERSION = '0.900007'; | |
| 5 | |||
| 6 | 3 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 3 | extends 'DBIO::ResultSet'; | |
| 8 | |||
| 9 | 1 | ▶ | sub FOREIGNBUILDARGS { my ($class, @args) = @_; return @args } |
|
Subroutine
FOREIGNBUILDARGS: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 10 | |||
| 11 | 1 | ▶ | has default_limit => ( is => 'rw', lazy => 1, default => sub { 100 } ); |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 0 | ▶ | sub by_name { |
|
Subroutine
by_name: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 14 | 0 | my ($self, $name) = @_; | |
| 15 | 0 | return $self->search({ name => $name }); | |
| 16 | } | ||
| 17 | |||
| 18 | 0 | ▶ | sub order_by_name { |
|
Subroutine
order_by_name: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 19 | 0 | return $_[0]->search({}, { order_by => { -asc => 'name' } }); | |
| 20 | } | ||
| 21 | |||
| 22 | 3 | 1; | |
| 23 | |||
| 24 | __END__ | ||