| 1 | package Eixo::Docker::Event; | ||
| 2 | |||
| 3 | 12 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 0 | ▶ | sub new{ |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 6 | |||
| 7 | 0 | return bless({ | |
| 8 | |||
| 9 | id=>$_[1], | ||
| 10 | |||
| 11 | status=>$_[2], | ||
| 12 | |||
| 13 | code=>$_[3], | ||
| 14 | |||
| 15 | |||
| 16 | }, $_[0]); | ||
| 17 | } | ||
| 18 | |||
| 19 | 0 | ▶ | sub run{ |
|
Subroutine
run: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 20 | 0 | my ($self, $event) = @_; | |
| 21 | |||
| 22 | 0 | $self->{code}->($event); | |
| 23 | } | ||
| 24 | |||
| 25 | 12 | 1; | |