Object/GradientFill.pm untested

filter: Statementstmt 0.0% 0 / 71 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 15 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 90 CC 2 SCAR 9.2
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::GradientFill;
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::FillFormat;
41 use AsposeSlidesCloud::Object::GradientFillStop;
42  
43 use base ("Class::Accessor", "Class::Data::Inheritable");
44  
45  
46 #
47 #Represents gradient fill format
48 #
49 # NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
50 # REF: https://github.com/swagger-api/swagger-codegen
51 #
52  
53 #
54 # NOTE: This class is auto generated by the swagger code generator program.
55 # Do not edit the class manually.
56 # Ref: https://github.com/swagger-api/swagger-codegen
57 #
58 __PACKAGE__->mk_classdata('attribute_map' => {});
59 __PACKAGE__->mk_classdata('swagger_types' => {});
60 __PACKAGE__->mk_classdata('method_documentation' => {});
61 __PACKAGE__->mk_classdata('class_documentation' => {});
62  
63 # new object
64 sub new {
65 my ($class, %args) = @_;
66  
67 my $self = bless {}, $class;
68
69 foreach my $attribute (keys %{$class->attribute_map}) {
70 my $args_key = $class->attribute_map->{$attribute};
71 $self->$attribute( $args{ $args_key } );
72 }
73 $self->{ type } = 'Gradient';
74 return $self;
75 }
76  
77 # used by JSON for serialization
78 sub TO_JSON {
79 my $self = shift;
80 my $_data = {};
81 foreach my $_key (keys %{$self->attribute_map}) {
82 if (defined $self->{$_key}) {
83 $_data->{$self->attribute_map->{$_key}} = $self->{$_key};
84 }
85 }
86 return $_data;
87 }
88  
89  
90 __PACKAGE__->class_documentation({description => 'Represents gradient fill format',
91 class => 'GradientFill',
92 required => [], # TODO
93 } );
94  
95 __PACKAGE__->method_documentation({
96 'type' => {
97 datatype => 'string',
98 base_name => 'Type',
99 description => 'Type of fill.',
100 format => '',
101 read_only => '',
102 },
103 'direction' => {
104 datatype => 'string',
105 base_name => 'Direction',
106 description => 'Gradient style.',
107 format => '',
108 read_only => '',
109 },
110 'shape' => {
111 datatype => 'string',
112 base_name => 'Shape',
113 description => 'Gradient shape.',
114 format => '',
115 read_only => '',
116 },
117 'stops' => {
118 datatype => 'ARRAY[GradientFillStop]',
119 base_name => 'Stops',
120 description => 'Gradient stops.',
121 format => '',
122 read_only => '',
123 },
124 'linear_angle' => {
125 datatype => 'double',
126 base_name => 'LinearAngle',
127 description => 'Gradient angle.',
128 format => '',
129 read_only => '',
130 },
131 'is_scaled' => {
132 datatype => 'boolean',
133 base_name => 'IsScaled',
134 description => 'True if the gradient is scaled.',
135 format => '',
136 read_only => '',
137 },
138 'tile_flip' => {
139 datatype => 'string',
140 base_name => 'TileFlip',
141 description => 'Gradient flipping mode.',
142 format => '',
143 read_only => '',
144 },
145 });
146  
147 __PACKAGE__->swagger_types( {
148 'type' => 'string',
149 'direction' => 'string',
150 'shape' => 'string',
151 'stops' => 'ARRAY[GradientFillStop]',
152 'linear_angle' => 'double',
153 'is_scaled' => 'boolean',
154 'tile_flip' => 'string'
155 } );
156  
157 __PACKAGE__->attribute_map( {
158 'type' => 'Type',
159 'direction' => 'Direction',
160 'shape' => 'Shape',
161 'stops' => 'Stops',
162 'linear_angle' => 'LinearAngle',
163 'is_scaled' => 'IsScaled',
164 'tile_flip' => 'TileFlip'
165 } );
166  
167 __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});
168  
169  
170 1;