File Coverage

blib/lib/Bb/Collaborate/Ultra/Session/RecurrenceRule.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 20 20 100.0


line stmt bran cond sub pod time code
1             package Bb::Collaborate::Ultra::Session::RecurrenceRule;
2 3     3   11 use warnings; use strict;
  3     3   3  
  3         86  
  3         12  
  3         3  
  3         60  
3 3     3   10 use Mouse;
  3         3  
  3         14  
4 3     3   753 use JSON;
  3         4  
  3         18  
5             extends 'Bb::Collaborate::Ultra::DAO';
6 3     3   326 use Mouse::Util::TypeConstraints;
  3         6  
  3         16  
7             coerce __PACKAGE__, from 'HashRef' => via {
8             __PACKAGE__->new( $_ )
9             };
10             __PACKAGE__->load_schema();
11              
12             =head1 NAME
13              
14             Bb::Collaborate::Ultra::Session::RecurrenceRule
15              
16             =head1 DESCRIPTION
17              
18             Session scheduling sub-record.
19              
20             =head1 METHODS
21              
22             See L
23              
24             =cut
25            
26             1;
27             # downloaded from https://xx-csa.bbcollab.com/documentation
28             __DATA__
29             {
30             "type" : "object",
31             "id" : "RecurrenceRule",
32             "properties" : {
33             "recurrenceEndType" : {
34             "type" : "string",
35             "enum" : [ "on_date", "after_occurrences_count" ]
36             },
37             "daysOfTheWeek" : {
38             "type" : "array",
39             "items" : {
40             "type" : "string",
41             "enum" : [ "mo", "tu", "we", "th", "fr", "sa", "su" ]
42             }
43             },
44             "recurrenceType" : {
45             "type" : "string",
46             "enum" : [ "daily", "weekly", "monthly" ]
47             },
48             "interval" : {
49             "type" : "string",
50             "enum" : [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" ]
51             },
52             "numberOfOccurrence" : {
53             "type" : "integer"
54             },
55             "endDate" : {
56             "type" : "string",
57             "format" : "DATE_TIME"
58             }
59             }
60             }