Object/MatrixElement.pm untested

filter: Statementstmt 0.0% 0 / 68 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 14 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 86 CC 2 SCAR 9.3
CC
2
Cov
0%
TO_JSON
6.0
new
2.0
BEGIN
2.0
CRAP 2.5
1 =begin comment
2  
3 Copyright (c) 2019 Aspose Pty Ltd
4  
5 Permission is hereby granted, free of charge, to any person obtaining a copy
6 of this software and associated documentation files (the "Software"), to deal
7 in the Software without restriction, including without limitation the rights
8 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 copies of the Software, and to permit persons to whom the Software is
10 furnished to do so, subject to the following conditions:
11  
12 The above copyright notice and this permission notice shall be included in all
13 copies or substantial portions of the Software.
14  
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 SOFTWARE.
22  
23 =end comment
24  
25 =cut
26  
27 package AsposeSlidesCloud::Object::MatrixElement;
28  
29 require 5.6.0;
30 use strict;
31 use warnings;
32 use utf8;
33 use JSON qw(decode_json);
34 use Data::Dumper;
35 use Module::Runtime qw(use_module);
36 use Log::Any qw($log);
37 use Date::Parse;
38 use DateTime;
39  
40 use AsposeSlidesCloud::Object::MathElement;
41  
42 use base ("Class::Accessor", "Class::Data::Inheritable");
43  
44  
45 #
46 #Specifies the Matrix object,
47 #
48 # NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
49 # REF: https://github.com/swagger-api/swagger-codegen
50 #
51  
52 #
53 # NOTE: This class is auto generated by the swagger code generator program.
54 # Do not edit the class manually.
55 # Ref: https://github.com/swagger-api/swagger-codegen
56 #
57 __PACKAGE__->mk_classdata('attribute_map' => {});
58 __PACKAGE__->mk_classdata('swagger_types' => {});
59 __PACKAGE__->mk_classdata('method_documentation' => {});
60 __PACKAGE__->mk_classdata('class_documentation' => {});
61  
62 # new object
63 sub new {
64 my ($class, %args) = @_;
65  
66 my $self = bless {}, $class;
67
68 foreach my $attribute (keys %{$class->attribute_map}) {
69 my $args_key = $class->attribute_map->{$attribute};
70 $self->$attribute( $args{ $args_key } );
71 }
72 $self->{ type } = 'Matrix';
73 return $self;
74 }
75  
76 # used by JSON for serialization
77 sub TO_JSON {
78 my $self = shift;
79 my $_data = {};
80 foreach my $_key (keys %{$self->attribute_map}) {
81 if (defined $self->{$_key}) {
82 $_data->{$self->attribute_map->{$_key}} = $self->{$_key};
83 }
84 }
85 return $_data;
86 }
87  
88  
89 __PACKAGE__->class_documentation({description => 'Specifies the Matrix object,',
90 class => 'MatrixElement',
91 required => [], # TODO
92 } );
93  
94 __PACKAGE__->method_documentation({
95 'type' => {
96 datatype => 'string',
97 base_name => 'Type',
98 description => 'Element type',
99 format => '',
100 read_only => '',
101 },
102 'hide_placeholders' => {
103 datatype => 'boolean',
104 base_name => 'HidePlaceholders',
105 description => 'Hide the placeholders for empty matrix elements',
106 format => '',
107 read_only => '',
108 },
109 'base_justification' => {
110 datatype => 'string',
111 base_name => 'BaseJustification',
112 description => 'Specifies the vertical justification respect to surrounding text. ',
113 format => '',
114 read_only => '',
115 },
116 'min_column_width' => {
117 datatype => 'int',
118 base_name => 'MinColumnWidth',
119 description => 'Minimum column width in twips (1/20th of a point)',
120 format => '',
121 read_only => '',
122 },
123 'column_gap_rule' => {
124 datatype => 'string',
125 base_name => 'ColumnGapRule',
126 description => 'The type of horizontal spacing between columns of a matrix.',
127 format => '',
128 read_only => '',
129 },
130 'column_gap' => {
131 datatype => 'int',
132 base_name => 'ColumnGap',
133 description => 'The value of horizontal spacing between columns of a matrix',
134 format => '',
135 read_only => '',
136 },
137 'row_gap_rule' => {
138 datatype => 'string',
139 base_name => 'RowGapRule',
140 description => 'The type of vertical spacing between rows of a matrix',
141 format => '',
142 read_only => '',
143 },
144 'row_gap' => {
145 datatype => 'int',
146 base_name => 'RowGap',
147 description => 'The value of vertical spacing between rows of a matrix; ',
148 format => '',
149 read_only => '',
150 },
151 'items' => {
152 datatype => 'ARRAY[ARRAY[MathElement]]',
153 base_name => 'Items',
154 description => 'Matrix items',
155 format => '',
156 read_only => '',
157 },
158 });
159  
160 __PACKAGE__->swagger_types( {
161 'type' => 'string',
162 'hide_placeholders' => 'boolean',
163 'base_justification' => 'string',
164 'min_column_width' => 'int',
165 'column_gap_rule' => 'string',
166 'column_gap' => 'int',
167 'row_gap_rule' => 'string',
168 'row_gap' => 'int',
169 'items' => 'ARRAY[ARRAY[MathElement]]'
170 } );
171  
172 __PACKAGE__->attribute_map( {
173 'type' => 'Type',
174 'hide_placeholders' => 'HidePlaceholders',
175 'base_justification' => 'BaseJustification',
176 'min_column_width' => 'MinColumnWidth',
177 'column_gap_rule' => 'ColumnGapRule',
178 'column_gap' => 'ColumnGap',
179 'row_gap_rule' => 'RowGapRule',
180 'row_gap' => 'RowGap',
181 'items' => 'Items'
182 } );
183  
184 __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});
185  
186  
187 1;