| 1 | package Net::GPSD3::Return::VERSION; | ||
| 2 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use base qw{Net::GPSD3::Return::Unknown}; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 2 | our $VERSION='0.14'; | |
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | Net::GPSD3::Return::VERSION - Net::GPSD3 Return VERSION Object | ||
| 11 | |||
| 12 | =head1 SYNOPSIS | ||
| 13 | |||
| 14 | use Net::GPSD3; | ||
| 15 | my $gpsd=Net::GPSD3->new; | ||
| 16 | $gpsd->poll; #Sets VERSION and DEVICES in cache | ||
| 17 | my $v=$gpsd->cache->VERSION; | ||
| 18 | printf "Class: %s\nRelease: %s\nRevision: %s\nProtocol: %s\n", | ||
| 19 | $v->class, | ||
| 20 | $v->release, | ||
| 21 | $v->revision, | ||
| 22 | $v->protocol; | ||
| 23 | |||
| 24 | Returns something like this. | ||
| 25 | |||
| 26 | Class: VERSION | ||
| 27 | Release: 2.96~dev | ||
| 28 | Revision: 2011-03-17T02:51:23 | ||
| 29 | Protocol: 3.4 | ||
| 30 | |||
| 31 | =head1 DESCRIPTION | ||
| 32 | |||
| 33 | Provides a Perl object interface to the VERSION object returned by the GPSD daemon. | ||
| 34 | |||
| 35 | =head1 METHODS | ||
| 36 | |||
| 37 | =head2 class | ||
| 38 | |||
| 39 | Returns the object class | ||
| 40 | |||
| 41 | =head2 string | ||
| 42 | |||
| 43 | Returns the JSON string | ||
| 44 | |||
| 45 | =head2 parent | ||
| 46 | |||
| 47 | Return the parent L<Net::GPSD3> object | ||
| 48 | |||
| 49 | =head2 release | ||
| 50 | |||
| 51 | =cut | ||
| 52 | |||
| 53 | 1 | ▶ | sub release {shift->{"release"}}; |
|
Subroutine
release: called CC=1 SCAR=0.0
Pod
documented
| |||
| 54 | |||
| 55 | =head2 rev, revision | ||
| 56 | |||
| 57 | =cut | ||
| 58 | |||
| 59 | 2 | *revision=\&rev; | |
| 60 | |||
| 61 | 2 | ▶ | sub rev {shift->{"rev"}}; |
|
Subroutine
rev: called CC=1 SCAR=0.0
Pod
documented
| |||
| 62 | |||
| 63 | =head2 proto, protocol | ||
| 64 | |||
| 65 | =cut | ||
| 66 | |||
| 67 | 2 | *protocol=\&proto; | |
| 68 | |||
| 69 | 2 | ▶ | sub proto { |
|
Subroutine
proto: called CC=1 SCAR=0.0
Pod
documented
| |||
| 70 | 2 | my $self=shift; | |
| 71 | 2 | return join(".", $self->proto_major, $self->proto_minor); | |
| 72 | } | ||
| 73 | |||
| 74 | =head2 proto_major | ||
| 75 | |||
| 76 | =cut | ||
| 77 | |||
| 78 | 3 | ▶ | sub proto_major {shift->{"proto_major"}}; |
|
Subroutine
proto_major: called CC=1 SCAR=0.0
Pod
documented
| |||
| 79 | |||
| 80 | =head2 proto_minor | ||
| 81 | |||
| 82 | =cut | ||
| 83 | |||
| 84 | 3 | ▶ | sub proto_minor {shift->{"proto_minor"}}; |
|
Subroutine
proto_minor: called CC=1 SCAR=0.0
Pod
documented
| |||
| 85 | |||
| 86 | =head1 BUGS | ||
| 87 | |||
| 88 | Log on RT and Send to gpsd-dev email list | ||
| 89 | |||
| 90 | =head1 SUPPORT | ||
| 91 | |||
| 92 | DavisNetworks.com supports all Perl applications including this package. | ||
| 93 | |||
| 94 | Try gpsd-dev email list | ||
| 95 | |||
| 96 | =head1 AUTHOR | ||
| 97 | |||
| 98 | Michael R. Davis | ||
| 99 | CPAN ID: MRDVT | ||
| 100 | STOP, LLC | ||
| 101 | domain=>michaelrdavis,tld=>com,account=>perl | ||
| 102 | http://www.stopllc.com/ | ||
| 103 | |||
| 104 | =head1 COPYRIGHT | ||
| 105 | |||
| 106 | This program is free software licensed under the... | ||
| 107 | |||
| 108 | The BSD License | ||
| 109 | |||
| 110 | The full text of the license can be found in the LICENSE file included with this module. | ||
| 111 | |||
| 112 | =head1 SEE ALSO | ||
| 113 | |||
| 114 | L<Net::GPSD3>, L<Net::GPSD3::Return::Unknown> | ||
| 115 | |||
| 116 | =cut | ||
| 117 | |||
| 118 | 2 | 1; | |