File Coverage

blib/lib/Net/Fastly/Condition.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Net::Fastly::Condition;
3              
4 4     4   16 use strict;
  4         5  
  4         99  
5 4     4   12 use base qw(Net::Fastly::BelongsToServiceAndVersion);
  4         4  
  4         283  
6              
7             Net::Fastly::Backend->mk_accessors(qw(service_id name priority statement type));
8              
9             =head1 NAME
10              
11             Net::Fastly::Condition - Representation of a condition that can apply to first class objects
12              
13             =head1 ACCESSORS
14              
15             =head2 service_id
16              
17             The id of the service this belongs to.
18              
19             =head2 version
20              
21             The number of the version this belongs to.
22              
23             =head2 name
24              
25             The name of the condition
26              
27             =head2 statement
28              
29             The statement of the condition, should be a varnish if statement line
30              
31             =head2 priority
32              
33             What order to run them in, higher priority gets executed after lower priority
34              
35             =head2 type
36              
37             request cache or response
38              
39             request has req. object only
40             cache has req. and beresp.
41             response has req. and resp.
42              
43             =cut
44              
45             1;