Object/ChartCategory.pm untested

filter: Statementstmt 0.0% 0 / 76 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 17 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 97 CC 2 SCAR 8.9
CC
2
Cov
0%
TO_JSON
6.0
new
2.0
BEGIN
2.0
CRAP 2.4
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::ChartCategory;
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::EffectFormat;
41 use AsposeSlidesCloud::Object::FillFormat;
42 use AsposeSlidesCloud::Object::LineFormat;
43 use AsposeSlidesCloud::Object::OneValueChartDataPoint;
44  
45 use base ("Class::Accessor", "Class::Data::Inheritable");
46  
47  
48 #
49 #Represents chart category resource
50 #
51 # NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
52 # REF: https://github.com/swagger-api/swagger-codegen
53 #
54  
55 #
56 # NOTE: This class is auto generated by the swagger code generator program.
57 # Do not edit the class manually.
58 # Ref: https://github.com/swagger-api/swagger-codegen
59 #
60 __PACKAGE__->mk_classdata('attribute_map' => {});
61 __PACKAGE__->mk_classdata('swagger_types' => {});
62 __PACKAGE__->mk_classdata('method_documentation' => {});
63 __PACKAGE__->mk_classdata('class_documentation' => {});
64  
65 # new object
66 sub new {
67 my ($class, %args) = @_;
68  
69 my $self = bless {}, $class;
70
71 foreach my $attribute (keys %{$class->attribute_map}) {
72 my $args_key = $class->attribute_map->{$attribute};
73 $self->$attribute( $args{ $args_key } );
74 }
75 return $self;
76 }
77  
78 # used by JSON for serialization
79 sub TO_JSON {
80 my $self = shift;
81 my $_data = {};
82 foreach my $_key (keys %{$self->attribute_map}) {
83 if (defined $self->{$_key}) {
84 $_data->{$self->attribute_map->{$_key}} = $self->{$_key};
85 }
86 }
87 return $_data;
88 }
89  
90  
91 __PACKAGE__->class_documentation({description => 'Represents chart category resource',
92 class => 'ChartCategory',
93 required => [], # TODO
94 } );
95  
96 __PACKAGE__->method_documentation({
97 'parent_categories' => {
98 datatype => 'ARRAY[string]',
99 base_name => 'ParentCategories',
100 description => 'Gets or sets the parent categories. Used with Sunburst & treemap categories; ignored for other chart types.',
101 format => '',
102 read_only => '',
103 },
104 'level' => {
105 datatype => 'int',
106 base_name => 'Level',
107 description => 'Gets or sets the grouping level for the category. Used with Sunburst & treemap categories; ignored for other chart types.',
108 format => '',
109 read_only => '',
110 },
111 'value' => {
112 datatype => 'string',
113 base_name => 'Value',
114 description => 'Category value',
115 format => '',
116 read_only => '',
117 },
118 'fill_format' => {
119 datatype => 'FillFormat',
120 base_name => 'FillFormat',
121 description => 'Get or sets the fill format.',
122 format => '',
123 read_only => '',
124 },
125 'effect_format' => {
126 datatype => 'EffectFormat',
127 base_name => 'EffectFormat',
128 description => 'Get or sets the effect format.',
129 format => '',
130 read_only => '',
131 },
132 'line_format' => {
133 datatype => 'LineFormat',
134 base_name => 'LineFormat',
135 description => 'Get or sets the line format.',
136 format => '',
137 read_only => '',
138 },
139 'data_points' => {
140 datatype => 'ARRAY[OneValueChartDataPoint]',
141 base_name => 'DataPoints',
142 description => 'Gets or sets the data points for chart data',
143 format => '',
144 read_only => '',
145 },
146 });
147  
148 __PACKAGE__->swagger_types( {
149 'parent_categories' => 'ARRAY[string]',
150 'level' => 'int',
151 'value' => 'string',
152 'fill_format' => 'FillFormat',
153 'effect_format' => 'EffectFormat',
154 'line_format' => 'LineFormat',
155 'data_points' => 'ARRAY[OneValueChartDataPoint]'
156 } );
157  
158 __PACKAGE__->attribute_map( {
159 'parent_categories' => 'ParentCategories',
160 'level' => 'Level',
161 'value' => 'Value',
162 'fill_format' => 'FillFormat',
163 'effect_format' => 'EffectFormat',
164 'line_format' => 'LineFormat',
165 'data_points' => 'DataPoints'
166 } );
167  
168 __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});
169  
170  
171 1;