AMI/Common/Dev.pm

filter: Statementstmt 87.5% 14 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 100% 1 / 1 totaltotal 86.3% 19 / 22 CC 1 SCAR 1.8
CC
1
Cov
88%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« AMI/Common.pm ↑ Summary
1 #!/usr/bin/perl
2  
3 =head1 NAME
4  
5 Asterisk::AMI::Common::Dev - Extends Asterisk::AMI::Common to include functions for the current development branch of asterisk
6  
7 =head1 VERSION
8  
9 0.2.8
10  
11 =head1 SYNOPSIS
12  
13 use Asterisk::AMI::Common:Dev;
14  
15 my $astman = Asterisk::AMI::Common::Dev->new( PeerAddr => '127.0.0.1',
16 PeerPort => '5038',
17 Username => 'admin',
18 Secret => 'supersecrect'
19 );
20  
21 die "Unable to connect to asterisk" unless ($astman);
22  
23 $astman->bridge($channel1, $channel2);
24  
25 =head1 DESCRIPTION
26  
27 This module extends Asterisk::AMI::Common to include additional functions for working with the development branch of Asterisk.
28 It will also be the launching ground for new functions be they are merged into AMI::Common.
29  
30 =head2 Constructor
31  
32 =head3 new([ARGS])
33  
34 Creates new a Asterisk::AMI::Common::Dev object which takes the arguments as key-value pairs.
35  
36 This module inherits all options from the AMI module.
37  
38 =head2 Methods
39  
40 This module currently does not provide any additional methods.
41  
42 =head1 See Also
43  
44 Asterisk::AMI, Asterisk::AMI::Common
45  
46 =head1 AUTHOR
47  
48 Ryan Bullock (rrb3942@gmail.com)
49  
50 =head1 BUG REPORTING AND FEEBACK
51  
52 Please report any bugs or errors to our github issue tracker at http://github.com/rrb3942/perl-Asterisk-AMI/issues
53 or the cpan request tracker at https://rt.cpan.org/Public/Bug/Report.html?Queue=perl-Asterisk-AMI
54  
55 =head1 LICENSE
56  
57 Copyright (C) 2011 by Ryan Bullock (rrb3942@gmail.com)
58  
59 This module is free software. You can redistribute it and/or
60 modify it under the terms of the Artistic License 2.0.
61  
62 This program is distributed in the hope that it will be useful,
63 but without any warranty; without even the implied warranty of
64 merchantability or fitness for a particular purpose.
65  
66 =cut
67  
68 package Asterisk::AMI::Common::Dev;
69  
70 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
71 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
72 1 ▶use parent qw(Asterisk::AMI::Common);
Subroutine BEGIN: called CC=1 SCAR=0.0
73  
74 1 ▶use version 0.77; our $VERSION = version->declare("v0.2.8");
Subroutine BEGIN: called CC=1 SCAR=0.0
75  
76 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod documented
77 0 my ($class, %options) = @_;
78  
79 0 return $class->SUPER::new(%options);
80 }
81  
82 1 1;
« AMI/Common.pm ↑ Summary