StackExchange2/V2.pm

filter: Statementstmt 59.8% 70 / 117 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 53.4% 23 / 43 Podpod 0.0% 0 / 20 totaltotal 51.1% 93 / 182 CC 2 SCAR 5.1
CC
2
Cov
59%
new
6.0
answers
2.0
access_tokens
2.0
CRAP 1.7
« StackExchange2/V2/Common.pm ↑ Summary StackExchange2.pm »
1 package Net::StackExchange2::V2;
2  
3  
4 1 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Net::StackExchange2::V2::Answers;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use Net::StackExchange2::V2::AccessTokens;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use Net::StackExchange2::V2::Badges;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use Net::StackExchange2::V2::Comments;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use Net::StackExchange2::V2::Errors;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use Net::StackExchange2::V2::Events;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use Net::StackExchange2::V2::Info;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶use Net::StackExchange2::V2::Posts;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 1 ▶use Net::StackExchange2::V2::Privileges;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 1 ▶use Net::StackExchange2::V2::Questions;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 ▶use Net::StackExchange2::V2::Revisions;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 1 ▶use Net::StackExchange2::V2::Search;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 1 ▶use Net::StackExchange2::V2::Sites;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 1 ▶use Net::StackExchange2::V2::SuggestedEdits;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 1 ▶use Net::StackExchange2::V2::Tags;
Subroutine BEGIN: called CC=1 SCAR=0.0
23 1 ▶use Net::StackExchange2::V2::Users;
Subroutine BEGIN: called CC=1 SCAR=0.0
24 1 ▶use Net::StackExchange2::V2::Filters;
Subroutine BEGIN: called CC=1 SCAR=0.0
25 1 ▶use Net::StackExchange2::V2::Inbox;
Subroutine BEGIN: called CC=1 SCAR=0.0
26 1 ▶use Net::StackExchange2::V2::Notifications;
Subroutine BEGIN: called CC=1 SCAR=0.0
27  
28 1 our $VERSION = "0.05";
29  
30 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
31 0 my ($class, $params) = @_;
32 0 my $self = undef;
33 0 ▶ if($params) {
Branch: 1 branch
BranchTrueFalseTotal
if ($params) { } 0 0 0
34 0 $self = $params;
35 } else {
36 0 $self = {};
37 }
38 0 bless $self, $class;
39 0 return $self;
40 }
41 0 ▶sub answers {
Subroutine answers: not called CC=1 SCAR=6.9
Pod undocumented
42 0 my $self = shift;
43 0 return Net::StackExchange2::V2::Answers->new({ %$self });
44 }
45 0 ▶sub access_tokens {
Subroutine access_tokens: not called CC=1 SCAR=6.9
Pod undocumented
46 0 my $self = shift;
47 0 return Net::StackExchange2::V2::AccessTokens->new({ %$self });
48 }
49 0 ▶sub badges {
Subroutine badges: not called CC=1 SCAR=6.9
Pod undocumented
50 0 my $self = shift;
51 0 return Net::StackExchange2::V2::Badges->new({ %$self });
52 }
53 0 ▶sub comments {
Subroutine comments: not called CC=1 SCAR=6.9
Pod undocumented
54 0 my $self = shift;
55 0 return Net::StackExchange2::V2::Comments->new({ %$self });
56 }
57 0 ▶sub info {
Subroutine info: not called CC=1 SCAR=6.9
Pod undocumented
58 0 my $self = shift;
59 0 print "info...\n";
60 0 print Dumper($self);
61 0 return Net::StackExchange2::V2::Info->new({ %$self });
62 }
63 0 ▶sub posts {
Subroutine posts: not called CC=1 SCAR=6.9
Pod undocumented
64 0 my $self = shift;
65 0 return Net::StackExchange2::V2::Posts->new({ %$self});
66 }
67 0 ▶sub privileges {
Subroutine privileges: not called CC=1 SCAR=6.9
Pod undocumented
68 0 my $self = shift;
69 0 return Net::StackExchange2::V2::Privileges->new({ %$self });
70 }
71 0 ▶sub questions {
Subroutine questions: not called CC=1 SCAR=6.9
Pod undocumented
72 0 my $self = shift;
73 0 return Net::StackExchange2::V2::Questions->new( { %$self });
74 }
75 0 ▶sub revisions {
Subroutine revisions: not called CC=1 SCAR=6.9
Pod undocumented
76 0 my $self = shift;
77 0 return Net::StackExchange2::V2::Revisions->new({ %$self });
78 }
79 0 ▶sub search {
Subroutine search: not called CC=1 SCAR=6.9
Pod undocumented
80 0 my $self = shift;
81 0 return Net::StackExchange2::V2::Search->new({ %$self });
82 }
83 0 ▶sub sites {
Subroutine sites: not called CC=1 SCAR=6.9
Pod undocumented
84 0 my $self = shift;
85 0 return Net::StackExchange2::V2::Sites->new({ %$self });
86 }
87 0 ▶sub errors {
Subroutine errors: not called CC=1 SCAR=6.9
Pod undocumented
88 0 my $self = shift;
89 0 return Net::StackExchange2::V2::Errors->new({ %$self });
90 }
91 0 ▶sub suggested_edits {
Subroutine suggested_edits: not called CC=1 SCAR=6.9
Pod undocumented
92 0 my $self = shift;
93 0 return Net::StackExchange2::V2::SuggestedEdits->new({ %$self });
94 }
95 0 ▶sub tags {
Subroutine tags: not called CC=1 SCAR=6.9
Pod undocumented
96 0 my $self = shift;
97 0 return Net::StackExchange2::V2::Tags->new({ %$self });
98 }
99 0 ▶sub users {
Subroutine users: not called CC=1 SCAR=6.9
Pod undocumented
100 0 my $self = shift;
101 0 return Net::StackExchange2::V2::Users->new({ %$self });
102 }
103 0 ▶sub events {
Subroutine events: not called CC=1 SCAR=6.9
Pod undocumented
104 0 my $self = shift;
105 0 return Net::StackExchange2::V2::Events->new({ %$self });
106 }
107 0 ▶sub filters {
Subroutine filters: not called CC=1 SCAR=6.9
Pod undocumented
108 0 my $self = shift;
109 0 return Net::StackExchange2::V2::Filters->new({ %$self });
110 }
111 0 ▶sub inbox {
Subroutine inbox: not called CC=1 SCAR=6.9
Pod undocumented
112 0 my $self = shift;
113 0 return Net::StackExchange2::V2::Inbox->new({ %$self });
114 }
115 0 ▶sub notifications {
Subroutine notifications: not called CC=1 SCAR=6.9
Pod undocumented
116 0 my $self = shift;
117 0 return Net::StackExchange2::V2::Notifications->new({ %$self });
118 }
119 1 1; #End of StackExchange2::V2
120 __END__
« StackExchange2/V2/Common.pm ↑ Summary StackExchange2.pm »