Object/DataPoint.pm untested

filter: Statementstmt 0.0% 0 / 79 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 18 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 101 CC 2 SCAR 8.8
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::DataPoint;
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::SeriesMarker;
44 use AsposeSlidesCloud::Object::ThreeDFormat;
45  
46 use base ("Class::Accessor", "Class::Data::Inheritable");
47  
48  
49 #
50 #Data point.
51 #
52 # NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
53 # REF: https://github.com/swagger-api/swagger-codegen
54 #
55  
56 #
57 # NOTE: This class is auto generated by the swagger code generator program.
58 # Do not edit the class manually.
59 # Ref: https://github.com/swagger-api/swagger-codegen
60 #
61 __PACKAGE__->mk_classdata('attribute_map' => {});
62 __PACKAGE__->mk_classdata('swagger_types' => {});
63 __PACKAGE__->mk_classdata('method_documentation' => {});
64 __PACKAGE__->mk_classdata('class_documentation' => {});
65  
66 # new object
67 sub new {
68 my ($class, %args) = @_;
69  
70 my $self = bless {}, $class;
71
72 foreach my $attribute (keys %{$class->attribute_map}) {
73 my $args_key = $class->attribute_map->{$attribute};
74 $self->$attribute( $args{ $args_key } );
75 }
76 return $self;
77 }
78  
79 # used by JSON for serialization
80 sub TO_JSON {
81 my $self = shift;
82 my $_data = {};
83 foreach my $_key (keys %{$self->attribute_map}) {
84 if (defined $self->{$_key}) {
85 $_data->{$self->attribute_map->{$_key}} = $self->{$_key};
86 }
87 }
88 return $_data;
89 }
90  
91  
92 __PACKAGE__->class_documentation({description => 'Data point.',
93 class => 'DataPoint',
94 required => [], # TODO
95 } );
96  
97 __PACKAGE__->method_documentation({
98 'fill_format' => {
99 datatype => 'FillFormat',
100 base_name => 'FillFormat',
101 description => 'Gets or sets the fill format.',
102 format => '',
103 read_only => '',
104 },
105 'effect_format' => {
106 datatype => 'EffectFormat',
107 base_name => 'EffectFormat',
108 description => 'Gets or sets the effect format.',
109 format => '',
110 read_only => '',
111 },
112 'three_d_format' => {
113 datatype => 'ThreeDFormat',
114 base_name => 'ThreeDFormat',
115 description => 'Gets or sets the 3D format',
116 format => '',
117 read_only => '',
118 },
119 'line_format' => {
120 datatype => 'LineFormat',
121 base_name => 'LineFormat',
122 description => 'Gets or sets the line format.',
123 format => '',
124 read_only => '',
125 },
126 'marker' => {
127 datatype => 'SeriesMarker',
128 base_name => 'Marker',
129 description => 'Gets or sets the marker.',
130 format => '',
131 read_only => '',
132 },
133 'type' => {
134 datatype => 'string',
135 base_name => 'Type',
136 description => '',
137 format => '',
138 read_only => '',
139 },
140 });
141  
142 __PACKAGE__->swagger_types( {
143 'fill_format' => 'FillFormat',
144 'effect_format' => 'EffectFormat',
145 'three_d_format' => 'ThreeDFormat',
146 'line_format' => 'LineFormat',
147 'marker' => 'SeriesMarker',
148 'type' => 'string'
149 } );
150  
151 __PACKAGE__->attribute_map( {
152 'fill_format' => 'FillFormat',
153 'effect_format' => 'EffectFormat',
154 'three_d_format' => 'ThreeDFormat',
155 'line_format' => 'LineFormat',
156 'marker' => 'Marker',
157 'type' => 'Type'
158 } );
159  
160 __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});
161  
162  
163 1;