OpenSearch/Types.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 17 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« OpenSearch/Facets.pm ↑ Summary
1 package Search::OpenSearch::Types;
2 2 ▶use Type::Library -base, -declare => qw( SOSFacets );
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use Types::Standard qw( HashRef Object );
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use Type::Utils -all;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 class_type SOSFacets, { class => 'Search::OpenSearch::Facets' };
7 2 ▶coerce SOSFacets, from HashRef, via { Search::OpenSearch::Facets->new($_) };
Subroutine __ANON__: called CC=1 SCAR=0.0
8  
9 2 1;
10  
11 =head1 NAME
12  
13 Search::OpenSearch::Types - attribute types for Search::OpenSearch
14  
15 =head1 SYNOPSIS
16  
17 package Foo;
18 use Moose;
19 use Search::OpenSearch::Types qw( SOSFacets );
20 use Search::OpenSearch::Facets;
21  
22 has 'facets' => (
23 is => 'rw',
24 isa => SOSFacets,
25 coerce => 1,
26 );
27  
28 1;
29  
30 =head1 METHODS
31  
32 None.
33  
34 =head1 AUTHOR
35  
36 Peter Karman, C<< <karman at cpan.org> >>
37  
38 =head1 BUGS
39  
40 Please report any bugs or feature requests to C<bug-search-opensearch at rt.cpan.org>, or through
41 the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Search-OpenSearch>. I will be notified, and then you'll
42 automatically be notified of progress on your bug as I make changes.
43  
44 =head1 SUPPORT
45  
46 You can find documentation for this module with the perldoc command.
47  
48 perldoc Search::OpenSearch
49  
50  
51 You can also look for information at:
52  
53 =over 4
54  
55 =item * RT: CPAN's request tracker
56  
57 L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Search-OpenSearch>
58  
59 =item * AnnoCPAN: Annotated CPAN documentation
60  
61 L<http://annocpan.org/dist/Search-OpenSearch>
62  
63 =item * CPAN Ratings
64  
65 L<http://cpanratings.perl.org/d/Search-OpenSearch>
66  
67 =item * Search CPAN
68  
69 L<http://search.cpan.org/dist/Search-OpenSearch/>
70  
71 =back
72  
73 =head1 COPYRIGHT & LICENSE
74  
75 Copyright 2014 Peter Karman.
76  
77 This program is free software; you can redistribute it and/or modify it
78 under the terms of either: the GNU General Public License as published
79 by the Free Software Foundation; or the Artistic License.
80  
81 See http://dev.perl.org/licenses/ for more information.
82  
83  
84 =cut
« OpenSearch/Facets.pm ↑ Summary