File Coverage

blib/lib/AsposePdfCloud/Object/Signature.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 AsposePdfCloud::Object::Signature;
2              
3             require 5.6.0;
4 1     1   320 use strict;
  1         2  
  1         22  
5 1     1   4 use warnings;
  1         2  
  1         19  
6 1     1   4 use utf8;
  1         3  
  1         4  
7 1     1   19 use JSON qw(decode_json);
  1         1  
  1         4  
8 1     1   70 use Data::Dumper;
  1         11  
  1         41  
9 1     1   7 use Module::Runtime qw(use_module);
  1         1  
  1         5  
10 1     1   48 use Log::Any qw($log);
  1         2  
  1         4  
11 1     1   173 use Date::Parse;
  1         2  
  1         69  
12 1     1   6 use DateTime;
  1         2  
  1         17  
13              
14 1     1   3 use base "AsposePdfCloud::Object::BaseObject";
  1         10  
  1         205  
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             'SignaturePath' => 'string',
24             'SignatureType' => 'string',
25             'Password' => 'string',
26             'Contact' => 'string',
27             'Location' => 'string',
28             'Visible' => 'boolean',
29             'Rectangle' => 'Rectangle',
30             'FormFieldName' => 'string',
31             'Authority' => 'string',
32             'Date' => 'string'
33             };
34              
35             my $attribute_map = {
36             'SignaturePath' => 'SignaturePath',
37             'SignatureType' => 'SignatureType',
38             'Password' => 'Password',
39             'Contact' => 'Contact',
40             'Location' => 'Location',
41             'Visible' => 'Visible',
42             'Rectangle' => 'Rectangle',
43             'FormFieldName' => 'FormFieldName',
44             'Authority' => 'Authority',
45             'Date' => 'Date'
46             };
47              
48             # new object
49             sub new {
50 0     0 0   my ($class, %args) = @_;
51             my $self = {
52             #
53             'SignaturePath' => $args{'SignaturePath'},
54             #
55             'SignatureType' => $args{'SignatureType'},
56             #
57             'Password' => $args{'Password'},
58             #
59             'Contact' => $args{'Contact'},
60             #
61             'Location' => $args{'Location'},
62             #
63             'Visible' => $args{'Visible'},
64             #
65             'Rectangle' => $args{'Rectangle'},
66             #
67             'FormFieldName' => $args{'FormFieldName'},
68             #
69             'Authority' => $args{'Authority'},
70             #
71 0           'Date' => $args{'Date'}
72             };
73              
74 0           return bless $self, $class;
75             }
76              
77             # get swagger type of the attribute
78             sub get_swagger_types {
79 0     0 0   return $swagger_types;
80             }
81              
82             # get attribute mappping
83             sub get_attribute_map {
84 0     0 0   return $attribute_map;
85             }
86              
87             1;