Class: AsposeCellsCloud::Chart
- Inherits:
-
Object
- Object
- AsposeCellsCloud::Chart
- Defined in:
- lib/aspose_cells_cloud/models/chart.rb
Instance Attribute Summary collapse
-
#auto_scaling ⇒ Object
Returns the value of attribute auto_scaling.
-
#back_wall ⇒ Object
Returns the value of attribute back_wall.
-
#category_axis ⇒ Object
Returns the value of attribute category_axis.
-
#chart_area ⇒ Object
Returns the value of attribute chart_area.
-
#chart_data_table ⇒ Object
Returns the value of attribute chart_data_table.
-
#chart_object ⇒ Object
Returns the value of attribute chart_object.
-
#depth_percent ⇒ Object
Returns the value of attribute depth_percent.
-
#elevation ⇒ Object
Returns the value of attribute elevation.
-
#first_slice_angle ⇒ Object
Returns the value of attribute first_slice_angle.
-
#floor ⇒ Object
Returns the value of attribute floor.
-
#gap_depth ⇒ Object
Returns the value of attribute gap_depth.
-
#gap_width ⇒ Object
Returns the value of attribute gap_width.
-
#height_percent ⇒ Object
Returns the value of attribute height_percent.
-
#hide_pivot_field_buttons ⇒ Object
Returns the value of attribute hide_pivot_field_buttons.
-
#is3_d ⇒ Object
Returns the value of attribute is3_d.
-
#is_rectangular_cornered ⇒ Object
Returns the value of attribute is_rectangular_cornered.
-
#legend ⇒ Object
Returns the value of attribute legend.
-
#link ⇒ Object
Returns the value of attribute link.
-
#n_series ⇒ Object
Returns the value of attribute n_series.
-
#name ⇒ Object
Returns the value of attribute name.
-
#page_setup ⇒ Object
Returns the value of attribute page_setup.
-
#perspective ⇒ Object
Returns the value of attribute perspective.
-
#pivot_source ⇒ Object
Returns the value of attribute pivot_source.
-
#placement ⇒ Object
Returns the value of attribute placement.
-
#plot_area ⇒ Object
Returns the value of attribute plot_area.
-
#plot_empty_cells_type ⇒ Object
Returns the value of attribute plot_empty_cells_type.
-
#plot_visible_cells ⇒ Object
Returns the value of attribute plot_visible_cells.
-
#print_size ⇒ Object
Returns the value of attribute print_size.
-
#right_angle_axes ⇒ Object
Returns the value of attribute right_angle_axes.
-
#rotation_angle ⇒ Object
Returns the value of attribute rotation_angle.
-
#second_category_axis ⇒ Object
Returns the value of attribute second_category_axis.
-
#second_value_axis ⇒ Object
Returns the value of attribute second_value_axis.
-
#series_axis ⇒ Object
Returns the value of attribute series_axis.
-
#shapes ⇒ Object
Returns the value of attribute shapes.
-
#show_data_table ⇒ Object
Returns the value of attribute show_data_table.
-
#show_legend ⇒ Object
Returns the value of attribute show_legend.
-
#side_wall ⇒ Object
Returns the value of attribute side_wall.
-
#size_with_window ⇒ Object
Returns the value of attribute size_with_window.
-
#style ⇒ Object
Returns the value of attribute style.
-
#title ⇒ Object
Returns the value of attribute title.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value_axis ⇒ Object
Returns the value of attribute value_axis.
-
#walls ⇒ Object
Returns the value of attribute walls.
-
#walls_and_gridlines2_d ⇒ Object
Returns the value of attribute walls_and_gridlines2_d.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ Chart
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ Chart
Initializes the object
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 225 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'AutoScaling') self.auto_scaling = attributes[:'AutoScaling'] end if attributes.has_key?(:'BackWall') self.back_wall = attributes[:'BackWall'] end if attributes.has_key?(:'CategoryAxis') self.category_axis = attributes[:'CategoryAxis'] end if attributes.has_key?(:'ChartArea') self.chart_area = attributes[:'ChartArea'] end if attributes.has_key?(:'ChartDataTable') self.chart_data_table = attributes[:'ChartDataTable'] end if attributes.has_key?(:'ChartObject') self.chart_object = attributes[:'ChartObject'] end if attributes.has_key?(:'DepthPercent') self.depth_percent = attributes[:'DepthPercent'] end if attributes.has_key?(:'Elevation') self.elevation = attributes[:'Elevation'] end if attributes.has_key?(:'FirstSliceAngle') self.first_slice_angle = attributes[:'FirstSliceAngle'] end if attributes.has_key?(:'Floor') self.floor = attributes[:'Floor'] end if attributes.has_key?(:'GapDepth') self.gap_depth = attributes[:'GapDepth'] end if attributes.has_key?(:'GapWidth') self.gap_width = attributes[:'GapWidth'] end if attributes.has_key?(:'HeightPercent') self.height_percent = attributes[:'HeightPercent'] end if attributes.has_key?(:'HidePivotFieldButtons') self. = attributes[:'HidePivotFieldButtons'] end if attributes.has_key?(:'Is3D') self.is3_d = attributes[:'Is3D'] end if attributes.has_key?(:'IsRectangularCornered') self.is_rectangular_cornered = attributes[:'IsRectangularCornered'] end if attributes.has_key?(:'Legend') self.legend = attributes[:'Legend'] end if attributes.has_key?(:'Name') self.name = attributes[:'Name'] end if attributes.has_key?(:'NSeries') self.n_series = attributes[:'NSeries'] end if attributes.has_key?(:'PageSetup') self.page_setup = attributes[:'PageSetup'] end if attributes.has_key?(:'Perspective') self.perspective = attributes[:'Perspective'] end if attributes.has_key?(:'PivotSource') self.pivot_source = attributes[:'PivotSource'] end if attributes.has_key?(:'Placement') self.placement = attributes[:'Placement'] end if attributes.has_key?(:'PlotArea') self.plot_area = attributes[:'PlotArea'] end if attributes.has_key?(:'PlotEmptyCellsType') self.plot_empty_cells_type = attributes[:'PlotEmptyCellsType'] end if attributes.has_key?(:'PlotVisibleCells') self.plot_visible_cells = attributes[:'PlotVisibleCells'] end if attributes.has_key?(:'PrintSize') self.print_size = attributes[:'PrintSize'] end if attributes.has_key?(:'RightAngleAxes') self.right_angle_axes = attributes[:'RightAngleAxes'] end if attributes.has_key?(:'RotationAngle') self.rotation_angle = attributes[:'RotationAngle'] end if attributes.has_key?(:'SecondCategoryAxis') self.second_category_axis = attributes[:'SecondCategoryAxis'] end if attributes.has_key?(:'SecondValueAxis') self.second_value_axis = attributes[:'SecondValueAxis'] end if attributes.has_key?(:'SeriesAxis') self.series_axis = attributes[:'SeriesAxis'] end if attributes.has_key?(:'Shapes') self.shapes = attributes[:'Shapes'] end if attributes.has_key?(:'ShowDataTable') self.show_data_table = attributes[:'ShowDataTable'] end if attributes.has_key?(:'ShowLegend') self.show_legend = attributes[:'ShowLegend'] end if attributes.has_key?(:'SideWall') self.side_wall = attributes[:'SideWall'] end if attributes.has_key?(:'SizeWithWindow') self.size_with_window = attributes[:'SizeWithWindow'] end if attributes.has_key?(:'Style') self.style = attributes[:'Style'] end if attributes.has_key?(:'Title') self.title = attributes[:'Title'] end if attributes.has_key?(:'Type') self.type = attributes[:'Type'] end if attributes.has_key?(:'ValueAxis') self.value_axis = attributes[:'ValueAxis'] end if attributes.has_key?(:'Walls') self.walls = attributes[:'Walls'] end if attributes.has_key?(:'WallsAndGridlines2D') self.walls_and_gridlines2_d = attributes[:'WallsAndGridlines2D'] end if attributes.has_key?(:'link') self.link = attributes[:'link'] end end |
Instance Attribute Details
#auto_scaling ⇒ Object
Returns the value of attribute auto_scaling.
35 36 37 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 35 def auto_scaling @auto_scaling end |
#back_wall ⇒ Object
Returns the value of attribute back_wall.
37 38 39 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 37 def back_wall @back_wall end |
#category_axis ⇒ Object
Returns the value of attribute category_axis.
39 40 41 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 39 def category_axis @category_axis end |
#chart_area ⇒ Object
Returns the value of attribute chart_area.
41 42 43 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 41 def chart_area @chart_area end |
#chart_data_table ⇒ Object
Returns the value of attribute chart_data_table.
43 44 45 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 43 def chart_data_table @chart_data_table end |
#chart_object ⇒ Object
Returns the value of attribute chart_object.
45 46 47 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 45 def chart_object @chart_object end |
#depth_percent ⇒ Object
Returns the value of attribute depth_percent.
47 48 49 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 47 def depth_percent @depth_percent end |
#elevation ⇒ Object
Returns the value of attribute elevation.
49 50 51 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 49 def elevation @elevation end |
#first_slice_angle ⇒ Object
Returns the value of attribute first_slice_angle.
51 52 53 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 51 def first_slice_angle @first_slice_angle end |
#floor ⇒ Object
Returns the value of attribute floor.
53 54 55 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 53 def floor @floor end |
#gap_depth ⇒ Object
Returns the value of attribute gap_depth.
55 56 57 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 55 def gap_depth @gap_depth end |
#gap_width ⇒ Object
Returns the value of attribute gap_width.
57 58 59 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 57 def gap_width @gap_width end |
#height_percent ⇒ Object
Returns the value of attribute height_percent.
59 60 61 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 59 def height_percent @height_percent end |
#hide_pivot_field_buttons ⇒ Object
Returns the value of attribute hide_pivot_field_buttons.
61 62 63 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 61 def @hide_pivot_field_buttons end |
#is3_d ⇒ Object
Returns the value of attribute is3_d.
63 64 65 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 63 def is3_d @is3_d end |
#is_rectangular_cornered ⇒ Object
Returns the value of attribute is_rectangular_cornered.
65 66 67 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 65 def is_rectangular_cornered @is_rectangular_cornered end |
#legend ⇒ Object
Returns the value of attribute legend.
67 68 69 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 67 def legend @legend end |
#link ⇒ Object
Returns the value of attribute link.
121 122 123 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 121 def link @link end |
#n_series ⇒ Object
Returns the value of attribute n_series.
71 72 73 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 71 def n_series @n_series end |
#name ⇒ Object
Returns the value of attribute name.
69 70 71 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 69 def name @name end |
#page_setup ⇒ Object
Returns the value of attribute page_setup.
73 74 75 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 73 def page_setup @page_setup end |
#perspective ⇒ Object
Returns the value of attribute perspective.
75 76 77 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 75 def perspective @perspective end |
#pivot_source ⇒ Object
Returns the value of attribute pivot_source.
77 78 79 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 77 def pivot_source @pivot_source end |
#placement ⇒ Object
Returns the value of attribute placement.
79 80 81 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 79 def placement @placement end |
#plot_area ⇒ Object
Returns the value of attribute plot_area.
81 82 83 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 81 def plot_area @plot_area end |
#plot_empty_cells_type ⇒ Object
Returns the value of attribute plot_empty_cells_type.
83 84 85 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 83 def plot_empty_cells_type @plot_empty_cells_type end |
#plot_visible_cells ⇒ Object
Returns the value of attribute plot_visible_cells.
85 86 87 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 85 def plot_visible_cells @plot_visible_cells end |
#print_size ⇒ Object
Returns the value of attribute print_size.
87 88 89 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 87 def print_size @print_size end |
#right_angle_axes ⇒ Object
Returns the value of attribute right_angle_axes.
89 90 91 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 89 def right_angle_axes @right_angle_axes end |
#rotation_angle ⇒ Object
Returns the value of attribute rotation_angle.
91 92 93 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 91 def rotation_angle @rotation_angle end |
#second_category_axis ⇒ Object
Returns the value of attribute second_category_axis.
93 94 95 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 93 def second_category_axis @second_category_axis end |
#second_value_axis ⇒ Object
Returns the value of attribute second_value_axis.
95 96 97 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 95 def second_value_axis @second_value_axis end |
#series_axis ⇒ Object
Returns the value of attribute series_axis.
97 98 99 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 97 def series_axis @series_axis end |
#shapes ⇒ Object
Returns the value of attribute shapes.
99 100 101 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 99 def shapes @shapes end |
#show_data_table ⇒ Object
Returns the value of attribute show_data_table.
101 102 103 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 101 def show_data_table @show_data_table end |
#show_legend ⇒ Object
Returns the value of attribute show_legend.
103 104 105 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 103 def show_legend @show_legend end |
#side_wall ⇒ Object
Returns the value of attribute side_wall.
105 106 107 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 105 def side_wall @side_wall end |
#size_with_window ⇒ Object
Returns the value of attribute size_with_window.
107 108 109 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 107 def size_with_window @size_with_window end |
#style ⇒ Object
Returns the value of attribute style.
109 110 111 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 109 def style @style end |
#title ⇒ Object
Returns the value of attribute title.
111 112 113 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 111 def title @title end |
#type ⇒ Object
Returns the value of attribute type.
113 114 115 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 113 def type @type end |
#value_axis ⇒ Object
Returns the value of attribute value_axis.
115 116 117 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 115 def value_axis @value_axis end |
#walls ⇒ Object
Returns the value of attribute walls.
117 118 119 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 117 def walls @walls end |
#walls_and_gridlines2_d ⇒ Object
Returns the value of attribute walls_and_gridlines2_d.
119 120 121 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 119 def walls_and_gridlines2_d @walls_and_gridlines2_d end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 124 def self.attribute_map { :'auto_scaling' => :'AutoScaling', :'back_wall' => :'BackWall', :'category_axis' => :'CategoryAxis', :'chart_area' => :'ChartArea', :'chart_data_table' => :'ChartDataTable', :'chart_object' => :'ChartObject', :'depth_percent' => :'DepthPercent', :'elevation' => :'Elevation', :'first_slice_angle' => :'FirstSliceAngle', :'floor' => :'Floor', :'gap_depth' => :'GapDepth', :'gap_width' => :'GapWidth', :'height_percent' => :'HeightPercent', :'hide_pivot_field_buttons' => :'HidePivotFieldButtons', :'is3_d' => :'Is3D', :'is_rectangular_cornered' => :'IsRectangularCornered', :'legend' => :'Legend', :'name' => :'Name', :'n_series' => :'NSeries', :'page_setup' => :'PageSetup', :'perspective' => :'Perspective', :'pivot_source' => :'PivotSource', :'placement' => :'Placement', :'plot_area' => :'PlotArea', :'plot_empty_cells_type' => :'PlotEmptyCellsType', :'plot_visible_cells' => :'PlotVisibleCells', :'print_size' => :'PrintSize', :'right_angle_axes' => :'RightAngleAxes', :'rotation_angle' => :'RotationAngle', :'second_category_axis' => :'SecondCategoryAxis', :'second_value_axis' => :'SecondValueAxis', :'series_axis' => :'SeriesAxis', :'shapes' => :'Shapes', :'show_data_table' => :'ShowDataTable', :'show_legend' => :'ShowLegend', :'side_wall' => :'SideWall', :'size_with_window' => :'SizeWithWindow', :'style' => :'Style', :'title' => :'Title', :'type' => :'Type', :'value_axis' => :'ValueAxis', :'walls' => :'Walls', :'walls_and_gridlines2_d' => :'WallsAndGridlines2D', :'link' => :'link' } end |
.swagger_types ⇒ Object
Attribute type mapping.
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 174 def self.swagger_types { :'auto_scaling' => :'BOOLEAN', :'back_wall' => :'LinkElement', :'category_axis' => :'LinkElement', :'chart_area' => :'LinkElement', :'chart_data_table' => :'LinkElement', :'chart_object' => :'LinkElement', :'depth_percent' => :'Integer', :'elevation' => :'Integer', :'first_slice_angle' => :'Integer', :'floor' => :'LinkElement', :'gap_depth' => :'Integer', :'gap_width' => :'Integer', :'height_percent' => :'Integer', :'hide_pivot_field_buttons' => :'BOOLEAN', :'is3_d' => :'BOOLEAN', :'is_rectangular_cornered' => :'BOOLEAN', :'legend' => :'LinkElement', :'name' => :'String', :'n_series' => :'LinkElement', :'page_setup' => :'LinkElement', :'perspective' => :'Integer', :'pivot_source' => :'String', :'placement' => :'String', :'plot_area' => :'LinkElement', :'plot_empty_cells_type' => :'String', :'plot_visible_cells' => :'BOOLEAN', :'print_size' => :'String', :'right_angle_axes' => :'BOOLEAN', :'rotation_angle' => :'Integer', :'second_category_axis' => :'LinkElement', :'second_value_axis' => :'LinkElement', :'series_axis' => :'LinkElement', :'shapes' => :'LinkElement', :'show_data_table' => :'BOOLEAN', :'show_legend' => :'BOOLEAN', :'side_wall' => :'LinkElement', :'size_with_window' => :'BOOLEAN', :'style' => :'Integer', :'title' => :'LinkElement', :'type' => :'String', :'value_axis' => :'LinkElement', :'walls' => :'LinkElement', :'walls_and_gridlines2_d' => :'BOOLEAN', :'link' => :'Link' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 558 def ==(o) return true if self.equal?(o) self.class == o.class && auto_scaling == o.auto_scaling && back_wall == o.back_wall && category_axis == o.category_axis && chart_area == o.chart_area && chart_data_table == o.chart_data_table && chart_object == o.chart_object && depth_percent == o.depth_percent && elevation == o.elevation && first_slice_angle == o.first_slice_angle && floor == o.floor && gap_depth == o.gap_depth && gap_width == o.gap_width && height_percent == o.height_percent && == o. && is3_d == o.is3_d && is_rectangular_cornered == o.is_rectangular_cornered && legend == o.legend && name == o.name && n_series == o.n_series && page_setup == o.page_setup && perspective == o.perspective && pivot_source == o.pivot_source && placement == o.placement && plot_area == o.plot_area && plot_empty_cells_type == o.plot_empty_cells_type && plot_visible_cells == o.plot_visible_cells && print_size == o.print_size && right_angle_axes == o.right_angle_axes && rotation_angle == o.rotation_angle && second_category_axis == o.second_category_axis && second_value_axis == o.second_value_axis && series_axis == o.series_axis && shapes == o.shapes && show_data_table == o.show_data_table && show_legend == o.show_legend && side_wall == o.side_wall && size_with_window == o.size_with_window && style == o.style && title == o.title && type == o.type && value_axis == o.value_axis && walls == o.walls && walls_and_gridlines2_d == o.walls_and_gridlines2_d && link == o.link std_dev == o.std_dev end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 644 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model temp_model = AsposeCellsCloud.const_get(type).new temp_model.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
710 711 712 713 714 715 716 717 718 719 720 721 722 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 710 def _to_hash(value) if value.is_a?(Array) value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 623 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(o) ⇒ Boolean
610 611 612 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 610 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
616 617 618 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 616 def hash [ auto_scaling , back_wall , category_axis , chart_area , chart_data_table , chart_object , depth_percent , elevation , first_slice_angle , floor , gap_depth , gap_width , height_percent , , is3_d , is_rectangular_cornered , legend , name , n_series , page_setup , perspective , pivot_source , placement , plot_area , plot_empty_cells_type , plot_visible_cells , print_size , right_angle_axes , rotation_angle , second_category_axis , second_value_axis , series_axis , shapes , show_data_table , show_legend , side_wall , size_with_window , style , title , type , value_axis , walls , walls_and_gridlines2_d , link ].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 368 def list_invalid_properties invalid_properties = Array.new if @auto_scaling.nil? invalid_properties.push("invalid value for 'auto_scaling', auto_scaling cannot be nil.") end if @back_wall.nil? invalid_properties.push("invalid value for 'back_wall', back_wall cannot be nil.") end if @category_axis.nil? invalid_properties.push("invalid value for 'category_axis', category_axis cannot be nil.") end if @chart_area.nil? invalid_properties.push("invalid value for 'chart_area', chart_area cannot be nil.") end if @chart_data_table.nil? invalid_properties.push("invalid value for 'chart_data_table', chart_data_table cannot be nil.") end if @chart_object.nil? invalid_properties.push("invalid value for 'chart_object', chart_object cannot be nil.") end if @depth_percent.nil? invalid_properties.push("invalid value for 'depth_percent', depth_percent cannot be nil.") end if @elevation.nil? invalid_properties.push("invalid value for 'elevation', elevation cannot be nil.") end if @first_slice_angle.nil? invalid_properties.push("invalid value for 'first_slice_angle', first_slice_angle cannot be nil.") end if @floor.nil? invalid_properties.push("invalid value for 'floor', floor cannot be nil.") end if @gap_depth.nil? invalid_properties.push("invalid value for 'gap_depth', gap_depth cannot be nil.") end if @gap_width.nil? invalid_properties.push("invalid value for 'gap_width', gap_width cannot be nil.") end if @height_percent.nil? invalid_properties.push("invalid value for 'height_percent', height_percent cannot be nil.") end if @hide_pivot_field_buttons.nil? invalid_properties.push("invalid value for 'hide_pivot_field_buttons', hide_pivot_field_buttons cannot be nil.") end if @is3_d.nil? invalid_properties.push("invalid value for 'is3_d', is3_d cannot be nil.") end if @is_rectangular_cornered.nil? invalid_properties.push("invalid value for 'is_rectangular_cornered', is_rectangular_cornered cannot be nil.") end if @legend.nil? invalid_properties.push("invalid value for 'legend', legend cannot be nil.") end if @name.nil? invalid_properties.push("invalid value for 'name', name cannot be nil.") end if @n_series.nil? invalid_properties.push("invalid value for 'n_series', n_series cannot be nil.") end if @page_setup.nil? invalid_properties.push("invalid value for 'page_setup', page_setup cannot be nil.") end if @perspective.nil? invalid_properties.push("invalid value for 'perspective', perspective cannot be nil.") end if @pivot_source.nil? invalid_properties.push("invalid value for 'pivot_source', pivot_source cannot be nil.") end if @placement.nil? invalid_properties.push("invalid value for 'placement', placement cannot be nil.") end if @plot_area.nil? invalid_properties.push("invalid value for 'plot_area', plot_area cannot be nil.") end if @plot_empty_cells_type.nil? invalid_properties.push("invalid value for 'plot_empty_cells_type', plot_empty_cells_type cannot be nil.") end if @plot_visible_cells.nil? invalid_properties.push("invalid value for 'plot_visible_cells', plot_visible_cells cannot be nil.") end if @print_size.nil? invalid_properties.push("invalid value for 'print_size', print_size cannot be nil.") end if @right_angle_axes.nil? invalid_properties.push("invalid value for 'right_angle_axes', right_angle_axes cannot be nil.") end if @rotation_angle.nil? invalid_properties.push("invalid value for 'rotation_angle', rotation_angle cannot be nil.") end if @second_category_axis.nil? invalid_properties.push("invalid value for 'second_category_axis', second_category_axis cannot be nil.") end if @second_value_axis.nil? invalid_properties.push("invalid value for 'second_value_axis', second_value_axis cannot be nil.") end if @series_axis.nil? invalid_properties.push("invalid value for 'series_axis', series_axis cannot be nil.") end if @shapes.nil? invalid_properties.push("invalid value for 'shapes', shapes cannot be nil.") end if @show_data_table.nil? invalid_properties.push("invalid value for 'show_data_table', show_data_table cannot be nil.") end if @show_legend.nil? invalid_properties.push("invalid value for 'show_legend', show_legend cannot be nil.") end if @side_wall.nil? invalid_properties.push("invalid value for 'side_wall', side_wall cannot be nil.") end if @size_with_window.nil? invalid_properties.push("invalid value for 'size_with_window', size_with_window cannot be nil.") end if @style.nil? invalid_properties.push("invalid value for 'style', style cannot be nil.") end if @title.nil? invalid_properties.push("invalid value for 'title', title cannot be nil.") end if @type.nil? invalid_properties.push("invalid value for 'type', type cannot be nil.") end if @value_axis.nil? invalid_properties.push("invalid value for 'value_axis', value_axis cannot be nil.") end if @walls.nil? invalid_properties.push("invalid value for 'walls', walls cannot be nil.") end if @walls_and_gridlines2_d.nil? invalid_properties.push("invalid value for 'walls_and_gridlines2_d', walls_and_gridlines2_d cannot be nil.") end if @link.nil? invalid_properties.push("invalid value for 'link', link cannot be nil.") end return invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
690 691 692 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 690 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
696 697 698 699 700 701 702 703 704 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 696 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
684 685 686 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 684 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 |
# File 'lib/aspose_cells_cloud/models/chart.rb', line 508 def valid? return false if @auto_scaling.nil? return false if @back_wall.nil? return false if @category_axis.nil? return false if @chart_area.nil? return false if @chart_data_table.nil? return false if @chart_object.nil? return false if @depth_percent.nil? return false if @elevation.nil? return false if @first_slice_angle.nil? return false if @floor.nil? return false if @gap_depth.nil? return false if @gap_width.nil? return false if @height_percent.nil? return false if @hide_pivot_field_buttons.nil? return false if @is3_d.nil? return false if @is_rectangular_cornered.nil? return false if @legend.nil? return false if @name.nil? return false if @n_series.nil? return false if @page_setup.nil? return false if @perspective.nil? return false if @pivot_source.nil? return false if @placement.nil? return false if @plot_area.nil? return false if @plot_empty_cells_type.nil? return false if @plot_visible_cells.nil? return false if @print_size.nil? return false if @right_angle_axes.nil? return false if @rotation_angle.nil? return false if @second_category_axis.nil? return false if @second_value_axis.nil? return false if @series_axis.nil? return false if @shapes.nil? return false if @show_data_table.nil? return false if @show_legend.nil? return false if @side_wall.nil? return false if @size_with_window.nil? return false if @style.nil? return false if @title.nil? return false if @type.nil? return false if @value_axis.nil? return false if @walls.nil? return false if @walls_and_gridlines2_d.nil? return false if @link.nil? return true end |