| 1 | package Bb::Collaborate::V3::Session::Attendees; | ||||||||||
| 2 | 7 | ▶ | use warnings; use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | 7 | ▶ | use Mouse; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 7 | ▶ | use Mouse::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 7 | ▶ | use Scalar::Util; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 7 | extends 'Bb::Collaborate::V3::_List'; | |||||||||
| 10 | |||||||||||
| 11 | 7 | ▶ | use Bb::Collaborate::V3::Session::Attendee; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | |||||||||||
| 13 | 7 | __PACKAGE__->element_class('Bb::Collaborate::V3::SessionAttendence::Attendee'); | |||||||||
| 14 | |||||||||||
| 15 | =head1 NAME | ||||||||||
| 16 | |||||||||||
| 17 | Bb::Collaborate::V3::Session::Attendees - Container class for a list of session attendees | ||||||||||
| 18 | |||||||||||
| 19 | =cut | ||||||||||
| 20 | |||||||||||
| 21 | =head1 METHODS | ||||||||||
| 22 | |||||||||||
| 23 | =cut | ||||||||||
| 24 | |||||||||||
| 25 | coerce 'Bb::Collaborate::V3::Session::Attendees' => from 'ArrayRef' | ||||||||||
| 26 | 0 | ▶ | => via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 27 | my @attendees | ||||||||||
| 28 | 0 | ▶ | = (map {Scalar::Util::blessed($_) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 29 | ? $_ | ||||||||||
| 30 | : Bb::Collaborate::V3::Session::Attendee->new($_) | ||||||||||
| 31 | } @$_); | ||||||||||
| 32 | |||||||||||
| 33 | 0 | Bb::Collaborate::V3::Session::Attendees->new(\@attendees); | |||||||||
| 34 | 7 | }; | |||||||||
| 35 | |||||||||||
| 36 | coerce 'Bb::Collaborate::V3::Session::Attendees' => from 'HashRef' | ||||||||||
| 37 | 0 | ▶ | => via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 38 | 0 | ▶ | my $attendee = Scalar::Util::blessed($_) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 39 | ? $_ | ||||||||||
| 40 | : Bb::Collaborate::V3::Session::Attendee->new($_); | ||||||||||
| 41 | |||||||||||
| 42 | 0 | Bb::Collaborate::V3::Session::Attendees->new([ $attendee ]); | |||||||||
| 43 | 7 | }; | |||||||||
| 44 | |||||||||||
| 45 | 7 | 1; | |||||||||