File Coverage

blib/lib/AsposePdfCloud/Object/Stamp.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::Stamp;
2              
3             require 5.6.0;
4 1     1   263 use strict;
  1         2  
  1         22  
5 1     1   4 use warnings;
  1         2  
  1         18  
6 1     1   4 use utf8;
  1         1  
  1         5  
7 1     1   18 use JSON qw(decode_json);
  1         2  
  1         5  
8 1     1   71 use Data::Dumper;
  1         2  
  1         43  
9 1     1   5 use Module::Runtime qw(use_module);
  1         2  
  1         5  
10 1     1   50 use Log::Any qw($log);
  1         1  
  1         5  
11 1     1   172 use Date::Parse;
  1         2  
  1         67  
12 1     1   5 use DateTime;
  1         2  
  1         22  
13              
14 1     1   5 use base "AsposePdfCloud::Object::BaseObject";
  1         2  
  1         340  
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             'Type' => 'StampType',
24             'Background' => 'boolean',
25             'BottomMargin' => 'double',
26             'HorizontalAlignment' => 'HorizontalAlignment',
27             'LeftMargin' => 'double',
28             'Opacity' => 'double',
29             'RightMargin' => 'double',
30             'Rotate' => 'Rotation',
31             'RotateAngle' => 'double',
32             'TopMargin' => 'double',
33             'VerticalAlignment' => 'VerticalAlignment',
34             'XIndent' => 'double',
35             'YIndent' => 'double',
36             'Zoom' => 'double',
37             'TextAlignment' => 'HorizontalAlignment',
38             'Value' => 'string',
39             'TextState' => 'TextState',
40             'FileName' => 'string',
41             'Width' => 'double',
42             'Height' => 'double',
43             'PageIndex' => 'int',
44             'StartingNumber' => 'int'
45             };
46              
47             my $attribute_map = {
48             'Type' => 'Type',
49             'Background' => 'Background',
50             'BottomMargin' => 'BottomMargin',
51             'HorizontalAlignment' => 'HorizontalAlignment',
52             'LeftMargin' => 'LeftMargin',
53             'Opacity' => 'Opacity',
54             'RightMargin' => 'RightMargin',
55             'Rotate' => 'Rotate',
56             'RotateAngle' => 'RotateAngle',
57             'TopMargin' => 'TopMargin',
58             'VerticalAlignment' => 'VerticalAlignment',
59             'XIndent' => 'XIndent',
60             'YIndent' => 'YIndent',
61             'Zoom' => 'Zoom',
62             'TextAlignment' => 'TextAlignment',
63             'Value' => 'Value',
64             'TextState' => 'TextState',
65             'FileName' => 'FileName',
66             'Width' => 'Width',
67             'Height' => 'Height',
68             'PageIndex' => 'PageIndex',
69             'StartingNumber' => 'StartingNumber'
70             };
71              
72             # new object
73             sub new {
74 0     0 0   my ($class, %args) = @_;
75             my $self = {
76             #
77             'Type' => $args{'Type'},
78             #
79             'Background' => $args{'Background'},
80             #
81             'BottomMargin' => $args{'BottomMargin'},
82             #
83             'HorizontalAlignment' => $args{'HorizontalAlignment'},
84             #
85             'LeftMargin' => $args{'LeftMargin'},
86             #
87             'Opacity' => $args{'Opacity'},
88             #
89             'RightMargin' => $args{'RightMargin'},
90             #
91             'Rotate' => $args{'Rotate'},
92             #
93             'RotateAngle' => $args{'RotateAngle'},
94             #
95             'TopMargin' => $args{'TopMargin'},
96             #
97             'VerticalAlignment' => $args{'VerticalAlignment'},
98             #
99             'XIndent' => $args{'XIndent'},
100             #
101             'YIndent' => $args{'YIndent'},
102             #
103             'Zoom' => $args{'Zoom'},
104             #
105             'TextAlignment' => $args{'TextAlignment'},
106             #
107             'Value' => $args{'Value'},
108             #
109             'TextState' => $args{'TextState'},
110             #
111             'FileName' => $args{'FileName'},
112             #
113             'Width' => $args{'Width'},
114             #
115             'Height' => $args{'Height'},
116             #
117             'PageIndex' => $args{'PageIndex'},
118             #
119 0           'StartingNumber' => $args{'StartingNumber'}
120             };
121              
122 0           return bless $self, $class;
123             }
124              
125             # get swagger type of the attribute
126             sub get_swagger_types {
127 0     0 0   return $swagger_types;
128             }
129              
130             # get attribute mappping
131             sub get_attribute_map {
132 0     0 0   return $attribute_map;
133             }
134              
135             1;