| 1 | package HTTP::MobileAgent::NonMobile; | ||
| 2 | |||
| 3 | 10 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 10 | ▶ | use vars qw($VERSION); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 10 | $VERSION = 0.02; | |
| 6 | 10 | ▶ | use base qw(HTTP::MobileAgent); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 10 | __PACKAGE__->make_accessors( | |
| 9 | qw(model device_id) | ||
| 10 | ); | ||
| 11 | |||
| 12 | sub parse { | ||
| 13 | 168 | ▶ | my $self = shift; |
|
Subroutine
parse: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 14 | 168 | my($name, $version) = split m!/!, $self->user_agent; | |
| 15 | 168 | $self->{name} = $name; | |
| 16 | 168 | $self->{version} = $version; | |
| 17 | 168 | $self->{device_id} = ''; | |
| 18 | 168 | $self->{model} = ''; | |
| 19 | } | ||
| 20 | |||
| 21 | 164 | ▶ | sub is_non_mobile { 1 } |
|
Subroutine
is_non_mobile: called CC=1 SCAR=0.0
Pod
documented
| |||
| 22 | |||
| 23 | 164 | ▶ | sub carrier { 'N' } |
|
Subroutine
carrier: called CC=1 SCAR=0.0
Pod
documented
| |||
| 24 | |||
| 25 | 164 | ▶ | sub carrier_longname { 'NonMobile' } |
|
Subroutine
carrier_longname: called CC=1 SCAR=0.0
Pod
documented
| |||
| 26 | |||
| 27 | |||
| 28 | 10 | 1; | |
| 29 | __END__ | ||