TypePad/Badges.pm untested

filter: Statementstmt 0.0% 0 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 31 CC 1 SCAR 6.9
CC
1
Cov
0%
WWW::TypePad::badges
2.0
get
2.0
BEGIN
2.0
CRAP 2.0
1 package WWW::TypePad::Badges;
2  
3 use strict;
4 use warnings;
5  
6 # Install an accessor into WWW::TypePad to access an instance of this class
7 # bound to the WWW::TypePad instance.
8 sub WWW::TypePad::badges { __PACKAGE__->new( base => $_[0] ) }
9  
10 ### BEGIN auto-generated
11 ### This is an automatically generated code, do not edit!
12 ### Scroll down to look for END to add additional methods
13  
14 =pod
15  
16 =head1 NAME
17  
18 WWW::TypePad::Badges - Badges API methods
19  
20 =head1 METHODS
21  
22 =cut
23  
24 use strict;
25 use Any::Moose;
26 extends 'WWW::TypePad::Noun';
27  
28 use Carp ();
29  
30  
31 =pod
32  
33 =over 4
34  
35  
36 =item get
37  
38 my $res = $tp->badges->get($id);
39  
40 Get basic information about the selected badge.
41  
42 Returns Badge which contains following properties.
43  
44 =over 8
45  
46 =item id
47  
48 (string) The canonical identifier that can be used to identify this badge in URLs. This can be used to recognise where the same badge is returned in response to different requests, and as a mapping key for an application's local data store.
49  
50 =item displayName
51  
52 (string) A human-readable name for this badge.
53  
54 =item description
55  
56 (string) A human-readable description of what a user must do to win this badge.
57  
58 =item imageLink
59  
60 (ImageLink) A link to the image that depicts this badge to users.
61  
62 =item isLearning
63  
64 (boolean) A learning badge is given for a special achievement a user accomplishes while filling out a new account. CE<lt>trueE<gt> if this is a learning badge, or CE<lt>falseE<gt> if this is a normal badge.
65  
66  
67 =back
68  
69 =cut
70  
71 sub get {
72 my $api = shift;
73 my @args;
74 push @args, shift; # id
75 my $uri = sprintf '/badges/%s.json', @args;
76 $api->base->call("GET", $uri, @_);
77 }
78  
79  
80 =pod
81  
82 =back
83  
84 =cut
85  
86 ### END auto-generated
87  
88 1;