File Coverage

blib/lib/AsposeTasksCloud/Object/TaskLink.pm
Criterion Covered Total %
statement 30 35 85.7
branch n/a
condition n/a
subroutine 10 13 76.9
pod 0 3 0.0
total 40 51 78.4


line stmt bran cond sub pod time code
1             package AsposeTasksCloud::Object::TaskLink;
2              
3             require 5.6.0;
4 1     1   279 use strict;
  1         2  
  1         48  
5 1     1   5 use warnings;
  1         2  
  1         21  
6 1     1   5 use utf8;
  1         1  
  1         20  
7 1     1   24 use JSON qw(decode_json);
  1         2  
  1         4  
8 1     1   92 use Data::Dumper;
  1         6  
  1         36  
9 1     1   5 use Module::Runtime qw(use_module);
  1         1  
  1         4  
10 1     1   52 use Log::Any qw($log);
  1         2  
  1         4  
11 1     1   163 use Date::Parse;
  1         2  
  1         69  
12 1     1   5 use DateTime;
  1         2  
  1         20  
13              
14 1     1   4 use base "AsposeTasksCloud::Object::BaseObject";
  1         2  
  1         172  
15              
16             #
17             #
18             #
19             #NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
20             #
21              
22             my $swagger_types = {
23             'Link' => 'Link',
24             'Index' => 'int',
25             'PredecessorUid' => 'int',
26             'SuccessorUid' => 'int',
27             'LinkType' => 'TaskLinkType',
28             'Lag' => 'int',
29             'LagFormat' => 'TimeUnitType'
30             };
31              
32             my $attribute_map = {
33             'Link' => 'Link',
34             'Index' => 'Index',
35             'PredecessorUid' => 'PredecessorUid',
36             'SuccessorUid' => 'SuccessorUid',
37             'LinkType' => 'LinkType',
38             'Lag' => 'Lag',
39             'LagFormat' => 'LagFormat'
40             };
41              
42             # new object
43             sub new {
44 0     0 0   my ($class, %args) = @_;
45             my $self = {
46             #
47             'Link' => $args{'Link'},
48             #
49             'Index' => $args{'Index'},
50             #
51             'PredecessorUid' => $args{'PredecessorUid'},
52             #
53             'SuccessorUid' => $args{'SuccessorUid'},
54             #
55             'LinkType' => $args{'LinkType'},
56             #
57             'Lag' => $args{'Lag'},
58             #
59 0           'LagFormat' => $args{'LagFormat'}
60             };
61              
62 0           return bless $self, $class;
63             }
64              
65             # get swagger type of the attribute
66             sub get_swagger_types {
67 0     0 0   return $swagger_types;
68             }
69              
70             # get attribute mappping
71             sub get_attribute_map {
72 0     0 0   return $attribute_map;
73             }
74              
75             1;