| 1 | package Net::APNS; | ||
| 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 Net::APNS::Notification; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 2 | ▶ | use Sub::Exporter -setup => { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | exports => [ qw/notify/ ], | ||
| 7 | 2 | }; | |
| 8 | 2 | our $VERSION = '0.0202'; | |
| 9 | |||
| 10 | 1 | ▶ | sub new { bless {}, $_[0]; } |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 11 | |||
| 12 | 1 | ▶ | sub notify { |
|
Subroutine
notify: called CC=1 SCAR=0.0
Pod
documented
| |||
| 13 | 1 | my ( $self, $args ) = @_; | |
| 14 | return Net::APNS::Notification->new( | ||
| 15 | cert => $args->{cert}, | ||
| 16 | key => $args->{key}, | ||
| 17 | passwd => $args->{passwd}, | ||
| 18 | 1 | ); | |
| 19 | } | ||
| 20 | |||
| 21 | 2 | 1; | |
| 22 | __END__ | ||