File Coverage

blib/lib/AsposeWordsCloud/Object/PageSetup.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 AsposeWordsCloud::Object::PageSetup;
2              
3             require 5.6.0;
4 1     1   275 use strict;
  1         2  
  1         23  
5 1     1   5 use warnings;
  1         2  
  1         19  
6 1     1   4 use utf8;
  1         2  
  1         3  
7 1     1   25 use JSON qw(decode_json);
  1         2  
  1         4  
8 1     1   70 use Data::Dumper;
  1         2  
  1         43  
9 1     1   5 use Module::Runtime qw(use_module);
  1         2  
  1         4  
10 1     1   49 use Log::Any qw($log);
  1         2  
  1         8  
11 1     1   160 use Date::Parse;
  1         2  
  1         69  
12 1     1   6 use DateTime;
  1         1  
  1         17  
13              
14 1     1   4 use base "AsposeWordsCloud::Object::BaseObject";
  1         2  
  1         367  
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             'Bidi' => 'boolean',
24             'BorderAlwaysInFront' => 'boolean',
25             'BorderAppliesTo' => 'PageBorderAppliesTo',
26             'BorderDistanceFrom' => 'PageBorderDistanceFrom',
27             'BottomMargin' => 'double',
28             'DifferentFirstPageHeaderFooter' => 'boolean',
29             'FirstPageTray' => 'int',
30             'FooterDistance' => 'double',
31             'Gutter' => 'double',
32             'HeaderDistance' => 'double',
33             'LeftMargin' => 'double',
34             'LineNumberCountBy' => 'int',
35             'LineNumberDistanceFromText' => 'double',
36             'LineNumberRestartMode' => 'LineNumberRestartMode',
37             'LineStartingNumber' => 'int',
38             'Orientation' => 'Orientation',
39             'OtherPagesTray' => 'int',
40             'PageHeight' => 'double',
41             'PageNumberStyle' => 'NumberStyle',
42             'PageStartingNumber' => 'int',
43             'PageWidth' => 'double',
44             'PaperSize' => 'PaperSize',
45             'RestartPageNumbering' => 'boolean',
46             'RightMargin' => 'double',
47             'RtlGutter' => 'boolean',
48             'SectionStart' => 'SectionStart',
49             'SuppressEndnotes' => 'boolean',
50             'TopMargin' => 'double',
51             'VerticalAlignment' => 'PageVerticalAlignment',
52             'link' => 'Link'
53             };
54              
55             my $attribute_map = {
56             'Bidi' => 'Bidi',
57             'BorderAlwaysInFront' => 'BorderAlwaysInFront',
58             'BorderAppliesTo' => 'BorderAppliesTo',
59             'BorderDistanceFrom' => 'BorderDistanceFrom',
60             'BottomMargin' => 'BottomMargin',
61             'DifferentFirstPageHeaderFooter' => 'DifferentFirstPageHeaderFooter',
62             'FirstPageTray' => 'FirstPageTray',
63             'FooterDistance' => 'FooterDistance',
64             'Gutter' => 'Gutter',
65             'HeaderDistance' => 'HeaderDistance',
66             'LeftMargin' => 'LeftMargin',
67             'LineNumberCountBy' => 'LineNumberCountBy',
68             'LineNumberDistanceFromText' => 'LineNumberDistanceFromText',
69             'LineNumberRestartMode' => 'LineNumberRestartMode',
70             'LineStartingNumber' => 'LineStartingNumber',
71             'Orientation' => 'Orientation',
72             'OtherPagesTray' => 'OtherPagesTray',
73             'PageHeight' => 'PageHeight',
74             'PageNumberStyle' => 'PageNumberStyle',
75             'PageStartingNumber' => 'PageStartingNumber',
76             'PageWidth' => 'PageWidth',
77             'PaperSize' => 'PaperSize',
78             'RestartPageNumbering' => 'RestartPageNumbering',
79             'RightMargin' => 'RightMargin',
80             'RtlGutter' => 'RtlGutter',
81             'SectionStart' => 'SectionStart',
82             'SuppressEndnotes' => 'SuppressEndnotes',
83             'TopMargin' => 'TopMargin',
84             'VerticalAlignment' => 'VerticalAlignment',
85             'link' => 'link'
86             };
87              
88             # new object
89             sub new {
90 0     0 0   my ($class, %args) = @_;
91             my $self = {
92             #
93             'Bidi' => $args{'Bidi'},
94             #
95             'BorderAlwaysInFront' => $args{'BorderAlwaysInFront'},
96             #
97             'BorderAppliesTo' => $args{'BorderAppliesTo'},
98             #
99             'BorderDistanceFrom' => $args{'BorderDistanceFrom'},
100             #
101             'BottomMargin' => $args{'BottomMargin'},
102             #
103             'DifferentFirstPageHeaderFooter' => $args{'DifferentFirstPageHeaderFooter'},
104             #
105             'FirstPageTray' => $args{'FirstPageTray'},
106             #
107             'FooterDistance' => $args{'FooterDistance'},
108             #
109             'Gutter' => $args{'Gutter'},
110             #
111             'HeaderDistance' => $args{'HeaderDistance'},
112             #
113             'LeftMargin' => $args{'LeftMargin'},
114             #
115             'LineNumberCountBy' => $args{'LineNumberCountBy'},
116             #
117             'LineNumberDistanceFromText' => $args{'LineNumberDistanceFromText'},
118             #
119             'LineNumberRestartMode' => $args{'LineNumberRestartMode'},
120             #
121             'LineStartingNumber' => $args{'LineStartingNumber'},
122             #
123             'Orientation' => $args{'Orientation'},
124             #
125             'OtherPagesTray' => $args{'OtherPagesTray'},
126             #
127             'PageHeight' => $args{'PageHeight'},
128             #
129             'PageNumberStyle' => $args{'PageNumberStyle'},
130             #
131             'PageStartingNumber' => $args{'PageStartingNumber'},
132             #
133             'PageWidth' => $args{'PageWidth'},
134             #
135             'PaperSize' => $args{'PaperSize'},
136             #
137             'RestartPageNumbering' => $args{'RestartPageNumbering'},
138             #
139             'RightMargin' => $args{'RightMargin'},
140             #
141             'RtlGutter' => $args{'RtlGutter'},
142             #
143             'SectionStart' => $args{'SectionStart'},
144             #
145             'SuppressEndnotes' => $args{'SuppressEndnotes'},
146             #
147             'TopMargin' => $args{'TopMargin'},
148             #
149             'VerticalAlignment' => $args{'VerticalAlignment'},
150             #
151 0           'link' => $args{'link'}
152             };
153              
154 0           return bless $self, $class;
155             }
156              
157             # get swagger type of the attribute
158             sub get_swagger_types {
159 0     0 0   return $swagger_types;
160             }
161              
162             # get attribute mappping
163             sub get_attribute_map {
164 0     0 0   return $attribute_map;
165             }
166              
167             1;