| 1 | package Android::ADB::Device; | ||
| 2 | |||
| 3 | 1 | ▶ | use 5.014000; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | ▶ | use parent qw/Class::Accessor::Fast/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | our $VERSION = '0.001'; | |
| 10 | |||
| 11 | 0 | ▶ | sub new { |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 12 | 0 | my ($class, $serial, $state, @attrs) = @_; | |
| 13 | 0 | my %attrs = map { split ':', $_, 2 } @attrs; | |
| 14 | 0 | bless { serial => $serial, state => $state, %attrs }, $class | |
| 15 | } | ||
| 16 | |||
| 17 | 1 | __PACKAGE__->mk_ro_accessors(qw/serial state usb product model device/); | |
| 18 | |||
| 19 | 1 | 1; | |
| 20 | __END__ | ||