Class: AsposeCellsCloud::Axis
- Inherits:
-
Object
- Object
- AsposeCellsCloud::Axis
- Defined in:
- lib/aspose_cells_cloud/models/axis.rb
Instance Attribute Summary collapse
-
#area ⇒ Object
Gets the .
-
#axis_between_categories ⇒ Object
Represents if the value axis crosses the category axis between categories.
-
#axis_line ⇒ Object
Gets the appearance of an Axis.
-
#base_unit_scale ⇒ Object
Represents the base unit scale for the category axis.
-
#category_type ⇒ Object
Represents the category axis type.
-
#cross_at ⇒ Object
Represents the point on the value axis where the category axis crosses it.
-
#cross_type ⇒ Object
Represents the on the specified axis where the other axis crosses.
-
#display_unit ⇒ Object
Represents the unit label for the specified axis.
-
#display_unit_label ⇒ Object
Represents a unit label on an axis in the specified chart.
-
#has_multi_level_labels ⇒ Object
Indicates whether the labels shall be shown as multi level.
-
#is_automatic_major_unit ⇒ Object
Indicates whether the major unit of the axis is automatically assigned.
-
#is_automatic_max_value ⇒ Object
Indicates whether the max value is automatically assigned.
-
#is_automatic_min_value ⇒ Object
Indicates whether the min value is automatically assigned.
-
#is_automatic_minor_unit ⇒ Object
Indicates whether the minor unit of the axis is automatically assigned.
-
#is_display_unit_label_shown ⇒ Object
Represents if the display unit label is shown on the specified axis.
-
#is_logarithmic ⇒ Object
Represents if the value axis scale type is logarithmic or not.
-
#is_plot_order_reversed ⇒ Object
Represents if Microsoft Excel plots data points from last to first.
-
#is_visible ⇒ Object
Represents if the axis is visible.
-
#link ⇒ Object
Returns the value of attribute link.
-
#log_base ⇒ Object
Represents the logarithmic base.
-
#major_grid_lines ⇒ Object
Represents major gridlines on a chart axis.
-
#major_tick_mark ⇒ Object
Represents the type of major tick mark for the specified axis.
-
#major_unit ⇒ Object
Represents the major units for the axis.
-
#major_unit_scale ⇒ Object
Represents the major unit scale for the category axis.
-
#max_value ⇒ Object
Represents the maximum value on the value axis.
-
#min_value ⇒ Object
Represents the minimum value on the value axis.
-
#minor_grid_lines ⇒ Object
Represents minor gridlines on a chart axis.
-
#minor_tick_mark ⇒ Object
Represents the type of minor tick mark for the specified axis.
-
#minor_unit ⇒ Object
Represents the minor units for the axis.
-
#minor_unit_scale ⇒ Object
Represents the major unit scale for the category axis.
-
#tick_label_position ⇒ Object
Represents the position of tick-mark labels on the specified axis.
-
#tick_label_spacing ⇒ Object
Represents the number of categories or series between tick-mark labels.
-
#tick_labels ⇒ Object
Returns a object that represents the tick-mark labels for the specified axis.
-
#tick_mark_spacing ⇒ Object
Returns or sets the number of categories or series between tick marks.
-
#title ⇒ Object
Gets the axis’ title.
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 = {}) ⇒ Axis
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 = {}) ⇒ Axis
Initializes the object
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 222 223 224 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 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 189 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?(:'Area') self.area = attributes[:'Area'] end if attributes.has_key?(:'AxisBetweenCategories') self.axis_between_categories = attributes[:'AxisBetweenCategories'] end if attributes.has_key?(:'AxisLine') self.axis_line = attributes[:'AxisLine'] end if attributes.has_key?(:'BaseUnitScale') self.base_unit_scale = attributes[:'BaseUnitScale'] end if attributes.has_key?(:'CategoryType') self.category_type = attributes[:'CategoryType'] end if attributes.has_key?(:'CrossAt') self.cross_at = attributes[:'CrossAt'] end if attributes.has_key?(:'CrossType') self.cross_type = attributes[:'CrossType'] end if attributes.has_key?(:'DisplayUnit') self.display_unit = attributes[:'DisplayUnit'] end if attributes.has_key?(:'DisplayUnitLabel') self.display_unit_label = attributes[:'DisplayUnitLabel'] end if attributes.has_key?(:'HasMultiLevelLabels') self.has_multi_level_labels = attributes[:'HasMultiLevelLabels'] end if attributes.has_key?(:'IsAutomaticMajorUnit') self.is_automatic_major_unit = attributes[:'IsAutomaticMajorUnit'] end if attributes.has_key?(:'IsAutomaticMaxValue') self.is_automatic_max_value = attributes[:'IsAutomaticMaxValue'] end if attributes.has_key?(:'IsAutomaticMinorUnit') self.is_automatic_minor_unit = attributes[:'IsAutomaticMinorUnit'] end if attributes.has_key?(:'IsAutomaticMinValue') self.is_automatic_min_value = attributes[:'IsAutomaticMinValue'] end if attributes.has_key?(:'IsDisplayUnitLabelShown') self.is_display_unit_label_shown = attributes[:'IsDisplayUnitLabelShown'] end if attributes.has_key?(:'IsLogarithmic') self.is_logarithmic = attributes[:'IsLogarithmic'] end if attributes.has_key?(:'IsPlotOrderReversed') self.is_plot_order_reversed = attributes[:'IsPlotOrderReversed'] end if attributes.has_key?(:'IsVisible') self.is_visible = attributes[:'IsVisible'] end if attributes.has_key?(:'LogBase') self.log_base = attributes[:'LogBase'] end if attributes.has_key?(:'MajorGridLines') self.major_grid_lines = attributes[:'MajorGridLines'] end if attributes.has_key?(:'MajorTickMark') self.major_tick_mark = attributes[:'MajorTickMark'] end if attributes.has_key?(:'MajorUnit') self.major_unit = attributes[:'MajorUnit'] end if attributes.has_key?(:'MajorUnitScale') self.major_unit_scale = attributes[:'MajorUnitScale'] end if attributes.has_key?(:'MaxValue') self.max_value = attributes[:'MaxValue'] end if attributes.has_key?(:'MinorGridLines') self.minor_grid_lines = attributes[:'MinorGridLines'] end if attributes.has_key?(:'MinorTickMark') self.minor_tick_mark = attributes[:'MinorTickMark'] end if attributes.has_key?(:'MinorUnit') self.minor_unit = attributes[:'MinorUnit'] end if attributes.has_key?(:'MinorUnitScale') self.minor_unit_scale = attributes[:'MinorUnitScale'] end if attributes.has_key?(:'MinValue') self.min_value = attributes[:'MinValue'] end if attributes.has_key?(:'TickLabelPosition') self.tick_label_position = attributes[:'TickLabelPosition'] end if attributes.has_key?(:'TickLabels') self.tick_labels = attributes[:'TickLabels'] end if attributes.has_key?(:'TickLabelSpacing') self.tick_label_spacing = attributes[:'TickLabelSpacing'] end if attributes.has_key?(:'TickMarkSpacing') self.tick_mark_spacing = attributes[:'TickMarkSpacing'] end if attributes.has_key?(:'Title') self.title = attributes[:'Title'] end if attributes.has_key?(:'link') self.link = attributes[:'link'] end end |
Instance Attribute Details
#area ⇒ Object
Gets the .
35 36 37 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 35 def area @area end |
#axis_between_categories ⇒ Object
Represents if the value axis crosses the category axis between categories.
37 38 39 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 37 def axis_between_categories @axis_between_categories end |
#axis_line ⇒ Object
Gets the appearance of an Axis.
39 40 41 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 39 def axis_line @axis_line end |
#base_unit_scale ⇒ Object
Represents the base unit scale for the category axis.
41 42 43 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 41 def base_unit_scale @base_unit_scale end |
#category_type ⇒ Object
Represents the category axis type.
43 44 45 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 43 def category_type @category_type end |
#cross_at ⇒ Object
Represents the point on the value axis where the category axis crosses it.
45 46 47 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 45 def cross_at @cross_at end |
#cross_type ⇒ Object
Represents the on the specified axis where the other axis crosses.
47 48 49 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 47 def cross_type @cross_type end |
#display_unit ⇒ Object
Represents the unit label for the specified axis.
49 50 51 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 49 def display_unit @display_unit end |
#display_unit_label ⇒ Object
Represents a unit label on an axis in the specified chart. Unit labels are useful for charting large values— for example, in the millions or billions.
51 52 53 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 51 def display_unit_label @display_unit_label end |
#has_multi_level_labels ⇒ Object
Indicates whether the labels shall be shown as multi level.
53 54 55 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 53 def has_multi_level_labels @has_multi_level_labels end |
#is_automatic_major_unit ⇒ Object
Indicates whether the major unit of the axis is automatically assigned.
55 56 57 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 55 def is_automatic_major_unit @is_automatic_major_unit end |
#is_automatic_max_value ⇒ Object
Indicates whether the max value is automatically assigned.
57 58 59 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 57 def is_automatic_max_value @is_automatic_max_value end |
#is_automatic_min_value ⇒ Object
Indicates whether the min value is automatically assigned.
61 62 63 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 61 def is_automatic_min_value @is_automatic_min_value end |
#is_automatic_minor_unit ⇒ Object
Indicates whether the minor unit of the axis is automatically assigned.
59 60 61 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 59 def is_automatic_minor_unit @is_automatic_minor_unit end |
#is_display_unit_label_shown ⇒ Object
Represents if the display unit label is shown on the specified axis.
63 64 65 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 63 def is_display_unit_label_shown @is_display_unit_label_shown end |
#is_logarithmic ⇒ Object
Represents if the value axis scale type is logarithmic or not.
65 66 67 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 65 def is_logarithmic @is_logarithmic end |
#is_plot_order_reversed ⇒ Object
Represents if Microsoft Excel plots data points from last to first.
67 68 69 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 67 def is_plot_order_reversed @is_plot_order_reversed end |
#is_visible ⇒ Object
Represents if the axis is visible.
69 70 71 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 69 def is_visible @is_visible end |
#link ⇒ Object
Returns the value of attribute link.
103 104 105 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 103 def link @link end |
#log_base ⇒ Object
Represents the logarithmic base. Default value is 10.Only applies for Excel2007.
71 72 73 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 71 def log_base @log_base end |
#major_grid_lines ⇒ Object
Represents major gridlines on a chart axis.
73 74 75 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 73 def major_grid_lines @major_grid_lines end |
#major_tick_mark ⇒ Object
Represents the type of major tick mark for the specified axis.
75 76 77 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 75 def major_tick_mark @major_tick_mark end |
#major_unit ⇒ Object
Represents the major units for the axis.
77 78 79 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 77 def major_unit @major_unit end |
#major_unit_scale ⇒ Object
Represents the major unit scale for the category axis.
79 80 81 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 79 def major_unit_scale @major_unit_scale end |
#max_value ⇒ Object
Represents the maximum value on the value axis.
81 82 83 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 81 def max_value @max_value end |
#min_value ⇒ Object
Represents the minimum value on the value axis.
91 92 93 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 91 def min_value @min_value end |
#minor_grid_lines ⇒ Object
Represents minor gridlines on a chart axis.
83 84 85 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 83 def minor_grid_lines @minor_grid_lines end |
#minor_tick_mark ⇒ Object
Represents the type of minor tick mark for the specified axis.
85 86 87 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 85 def minor_tick_mark @minor_tick_mark end |
#minor_unit ⇒ Object
Represents the minor units for the axis.
87 88 89 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 87 def minor_unit @minor_unit end |
#minor_unit_scale ⇒ Object
Represents the major unit scale for the category axis.
89 90 91 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 89 def minor_unit_scale @minor_unit_scale end |
#tick_label_position ⇒ Object
Represents the position of tick-mark labels on the specified axis.
93 94 95 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 93 def tick_label_position @tick_label_position end |
#tick_label_spacing ⇒ Object
Represents the number of categories or series between tick-mark labels. Applies only to category and series axes.
97 98 99 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 97 def tick_label_spacing @tick_label_spacing end |
#tick_labels ⇒ Object
Returns a object that represents the tick-mark labels for the specified axis.
95 96 97 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 95 def tick_labels @tick_labels end |
#tick_mark_spacing ⇒ Object
Returns or sets the number of categories or series between tick marks. Applies only to category and series axes.
99 100 101 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 99 def tick_mark_spacing @tick_mark_spacing end |
#title ⇒ Object
Gets the axis’ title.
101 102 103 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 101 def title @title end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 106 def self.attribute_map { :'area' => :'Area', :'axis_between_categories' => :'AxisBetweenCategories', :'axis_line' => :'AxisLine', :'base_unit_scale' => :'BaseUnitScale', :'category_type' => :'CategoryType', :'cross_at' => :'CrossAt', :'cross_type' => :'CrossType', :'display_unit' => :'DisplayUnit', :'display_unit_label' => :'DisplayUnitLabel', :'has_multi_level_labels' => :'HasMultiLevelLabels', :'is_automatic_major_unit' => :'IsAutomaticMajorUnit', :'is_automatic_max_value' => :'IsAutomaticMaxValue', :'is_automatic_minor_unit' => :'IsAutomaticMinorUnit', :'is_automatic_min_value' => :'IsAutomaticMinValue', :'is_display_unit_label_shown' => :'IsDisplayUnitLabelShown', :'is_logarithmic' => :'IsLogarithmic', :'is_plot_order_reversed' => :'IsPlotOrderReversed', :'is_visible' => :'IsVisible', :'log_base' => :'LogBase', :'major_grid_lines' => :'MajorGridLines', :'major_tick_mark' => :'MajorTickMark', :'major_unit' => :'MajorUnit', :'major_unit_scale' => :'MajorUnitScale', :'max_value' => :'MaxValue', :'minor_grid_lines' => :'MinorGridLines', :'minor_tick_mark' => :'MinorTickMark', :'minor_unit' => :'MinorUnit', :'minor_unit_scale' => :'MinorUnitScale', :'min_value' => :'MinValue', :'tick_label_position' => :'TickLabelPosition', :'tick_labels' => :'TickLabels', :'tick_label_spacing' => :'TickLabelSpacing', :'tick_mark_spacing' => :'TickMarkSpacing', :'title' => :'Title', :'link' => :'link' } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 172 173 174 175 176 177 178 179 180 181 182 183 184 185 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 147 def self.swagger_types { :'area' => :'Area', :'axis_between_categories' => :'BOOLEAN', :'axis_line' => :'Line', :'base_unit_scale' => :'String', :'category_type' => :'String', :'cross_at' => :'Float', :'cross_type' => :'String', :'display_unit' => :'String', :'display_unit_label' => :'DisplayUnitLabel', :'has_multi_level_labels' => :'BOOLEAN', :'is_automatic_major_unit' => :'BOOLEAN', :'is_automatic_max_value' => :'BOOLEAN', :'is_automatic_minor_unit' => :'BOOLEAN', :'is_automatic_min_value' => :'BOOLEAN', :'is_display_unit_label_shown' => :'BOOLEAN', :'is_logarithmic' => :'BOOLEAN', :'is_plot_order_reversed' => :'BOOLEAN', :'is_visible' => :'BOOLEAN', :'log_base' => :'Float', :'major_grid_lines' => :'Line', :'major_tick_mark' => :'String', :'major_unit' => :'Float', :'major_unit_scale' => :'String', :'max_value' => :'Float', :'minor_grid_lines' => :'Line', :'minor_tick_mark' => :'String', :'minor_unit' => :'Float', :'minor_unit_scale' => :'String', :'min_value' => :'Float', :'tick_label_position' => :'String', :'tick_labels' => :'TickLabels', :'tick_label_spacing' => :'Integer', :'tick_mark_spacing' => :'Integer', :'title' => :'Title', :'link' => :'Link' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
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 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 459 def ==(o) return true if self.equal?(o) self.class == o.class && area == o.area && axis_between_categories == o.axis_between_categories && axis_line == o.axis_line && base_unit_scale == o.base_unit_scale && category_type == o.category_type && cross_at == o.cross_at && cross_type == o.cross_type && display_unit == o.display_unit && display_unit_label == o.display_unit_label && has_multi_level_labels == o.has_multi_level_labels && is_automatic_major_unit == o.is_automatic_major_unit && is_automatic_max_value == o.is_automatic_max_value && is_automatic_minor_unit == o.is_automatic_minor_unit && is_automatic_min_value == o.is_automatic_min_value && is_display_unit_label_shown == o.is_display_unit_label_shown && is_logarithmic == o.is_logarithmic && is_plot_order_reversed == o.is_plot_order_reversed && is_visible == o.is_visible && log_base == o.log_base && major_grid_lines == o.major_grid_lines && major_tick_mark == o.major_tick_mark && major_unit == o.major_unit && major_unit_scale == o.major_unit_scale && max_value == o.max_value && minor_grid_lines == o.minor_grid_lines && minor_tick_mark == o.minor_tick_mark && minor_unit == o.minor_unit && minor_unit_scale == o.minor_unit_scale && min_value == o.min_value && tick_label_position == o.tick_label_position && tick_labels == o.tick_labels && tick_label_spacing == o.tick_label_spacing && tick_mark_spacing == o.tick_mark_spacing && title == o.title && link == o.link std_dev == o.std_dev end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 536 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
602 603 604 605 606 607 608 609 610 611 612 613 614 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 602 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
515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 515 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
502 503 504 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 502 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
508 509 510 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 508 def hash [ area , axis_between_categories , axis_line , base_unit_scale , category_type , cross_at , cross_type , display_unit , display_unit_label , has_multi_level_labels , is_automatic_major_unit , is_automatic_max_value , is_automatic_minor_unit , is_automatic_min_value , is_display_unit_label_shown , is_logarithmic , is_plot_order_reversed , is_visible , log_base , major_grid_lines , major_tick_mark , major_unit , major_unit_scale , max_value , minor_grid_lines , minor_tick_mark , minor_unit , minor_unit_scale , min_value , tick_label_position , tick_labels , tick_label_spacing , tick_mark_spacing , title , link ].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
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 365 366 367 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 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 305 def list_invalid_properties invalid_properties = Array.new if @area.nil? invalid_properties.push("invalid value for 'area', area cannot be nil.") end if @axis_between_categories.nil? invalid_properties.push("invalid value for 'axis_between_categories', axis_between_categories cannot be nil.") end if @axis_line.nil? invalid_properties.push("invalid value for 'axis_line', axis_line cannot be nil.") end if @base_unit_scale.nil? invalid_properties.push("invalid value for 'base_unit_scale', base_unit_scale cannot be nil.") end if @category_type.nil? invalid_properties.push("invalid value for 'category_type', category_type cannot be nil.") end if @cross_at.nil? invalid_properties.push("invalid value for 'cross_at', cross_at cannot be nil.") end if @cross_type.nil? invalid_properties.push("invalid value for 'cross_type', cross_type cannot be nil.") end if @display_unit.nil? invalid_properties.push("invalid value for 'display_unit', display_unit cannot be nil.") end if @display_unit_label.nil? invalid_properties.push("invalid value for 'display_unit_label', display_unit_label cannot be nil.") end if @has_multi_level_labels.nil? invalid_properties.push("invalid value for 'has_multi_level_labels', has_multi_level_labels cannot be nil.") end if @is_automatic_major_unit.nil? invalid_properties.push("invalid value for 'is_automatic_major_unit', is_automatic_major_unit cannot be nil.") end if @is_automatic_max_value.nil? invalid_properties.push("invalid value for 'is_automatic_max_value', is_automatic_max_value cannot be nil.") end if @is_automatic_minor_unit.nil? invalid_properties.push("invalid value for 'is_automatic_minor_unit', is_automatic_minor_unit cannot be nil.") end if @is_automatic_min_value.nil? invalid_properties.push("invalid value for 'is_automatic_min_value', is_automatic_min_value cannot be nil.") end if @is_display_unit_label_shown.nil? invalid_properties.push("invalid value for 'is_display_unit_label_shown', is_display_unit_label_shown cannot be nil.") end if @is_logarithmic.nil? invalid_properties.push("invalid value for 'is_logarithmic', is_logarithmic cannot be nil.") end if @is_plot_order_reversed.nil? invalid_properties.push("invalid value for 'is_plot_order_reversed', is_plot_order_reversed cannot be nil.") end if @is_visible.nil? invalid_properties.push("invalid value for 'is_visible', is_visible cannot be nil.") end if @log_base.nil? invalid_properties.push("invalid value for 'log_base', log_base cannot be nil.") end if @major_grid_lines.nil? invalid_properties.push("invalid value for 'major_grid_lines', major_grid_lines cannot be nil.") end if @major_tick_mark.nil? invalid_properties.push("invalid value for 'major_tick_mark', major_tick_mark cannot be nil.") end if @major_unit.nil? invalid_properties.push("invalid value for 'major_unit', major_unit cannot be nil.") end if @major_unit_scale.nil? invalid_properties.push("invalid value for 'major_unit_scale', major_unit_scale cannot be nil.") end if @max_value.nil? invalid_properties.push("invalid value for 'max_value', max_value cannot be nil.") end if @minor_grid_lines.nil? invalid_properties.push("invalid value for 'minor_grid_lines', minor_grid_lines cannot be nil.") end if @minor_tick_mark.nil? invalid_properties.push("invalid value for 'minor_tick_mark', minor_tick_mark cannot be nil.") end if @minor_unit.nil? invalid_properties.push("invalid value for 'minor_unit', minor_unit cannot be nil.") end if @minor_unit_scale.nil? invalid_properties.push("invalid value for 'minor_unit_scale', minor_unit_scale cannot be nil.") end if @min_value.nil? invalid_properties.push("invalid value for 'min_value', min_value cannot be nil.") end if @tick_label_position.nil? invalid_properties.push("invalid value for 'tick_label_position', tick_label_position cannot be nil.") end if @tick_labels.nil? invalid_properties.push("invalid value for 'tick_labels', tick_labels cannot be nil.") end if @tick_label_spacing.nil? invalid_properties.push("invalid value for 'tick_label_spacing', tick_label_spacing cannot be nil.") end if @tick_mark_spacing.nil? invalid_properties.push("invalid value for 'tick_mark_spacing', tick_mark_spacing cannot be nil.") end if @title.nil? invalid_properties.push("invalid value for 'title', title 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)
582 583 584 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 582 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
588 589 590 591 592 593 594 595 596 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 588 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
576 577 578 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 576 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
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 |
# File 'lib/aspose_cells_cloud/models/axis.rb', line 418 def valid? return false if @area.nil? return false if @axis_between_categories.nil? return false if @axis_line.nil? return false if @base_unit_scale.nil? return false if @category_type.nil? return false if @cross_at.nil? return false if @cross_type.nil? return false if @display_unit.nil? return false if @display_unit_label.nil? return false if @has_multi_level_labels.nil? return false if @is_automatic_major_unit.nil? return false if @is_automatic_max_value.nil? return false if @is_automatic_minor_unit.nil? return false if @is_automatic_min_value.nil? return false if @is_display_unit_label_shown.nil? return false if @is_logarithmic.nil? return false if @is_plot_order_reversed.nil? return false if @is_visible.nil? return false if @log_base.nil? return false if @major_grid_lines.nil? return false if @major_tick_mark.nil? return false if @major_unit.nil? return false if @major_unit_scale.nil? return false if @max_value.nil? return false if @minor_grid_lines.nil? return false if @minor_tick_mark.nil? return false if @minor_unit.nil? return false if @minor_unit_scale.nil? return false if @min_value.nil? return false if @tick_label_position.nil? return false if @tick_labels.nil? return false if @tick_label_spacing.nil? return false if @tick_mark_spacing.nil? return false if @title.nil? return false if @link.nil? return true end |