class AsposeSlidesCloud::TableCellMergeOptions
Table
cells merge options
Attributes
Allow splitting
First cell index in the row
Row index of the first cell
Last cell index in the row
Row index of the last cell
Public Class Methods
Attribute mapping from ruby-style variable name to JSON key.
# File lib/aspose_slides_cloud/models/table_cell_merge_options.rb, line 44 def self.attribute_map { :'first_row_index' => :'FirstRowIndex', :'first_cell_index' => :'FirstCellIndex', :'last_row_index' => :'LastRowIndex', :'last_cell_index' => :'LastCellIndex', :'allow_splitting' => :'AllowSplitting', } end
Initializes the object @param [Hash] attributes Model attributes in the form of hash
# File lib/aspose_slides_cloud/models/table_cell_merge_options.rb, line 67 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?(:'FirstRowIndex') self.first_row_index = attributes[:'FirstRowIndex'] end if attributes.has_key?(:'FirstCellIndex') self.first_cell_index = attributes[:'FirstCellIndex'] end if attributes.has_key?(:'LastRowIndex') self.last_row_index = attributes[:'LastRowIndex'] end if attributes.has_key?(:'LastCellIndex') self.last_cell_index = attributes[:'LastCellIndex'] end if attributes.has_key?(:'AllowSplitting') self.allow_splitting = attributes[:'AllowSplitting'] end end
Attribute type mapping.
# File lib/aspose_slides_cloud/models/table_cell_merge_options.rb, line 55 def self.swagger_types { :'first_row_index' => :'Integer', :'first_cell_index' => :'Integer', :'last_row_index' => :'Integer', :'last_cell_index' => :'Integer', :'allow_splitting' => :'BOOLEAN', } end
Public Instance Methods
Checks equality by comparing each attribute. @param [Object] Object to be compared
# File lib/aspose_slides_cloud/models/table_cell_merge_options.rb, line 129 def ==(o) return true if self.equal?(o) self.class == o.class && first_row_index == o.first_row_index && first_cell_index == o.first_cell_index && last_row_index == o.last_row_index && last_cell_index == o.last_cell_index && allow_splitting == o.allow_splitting end
@see the ‘==` method @param [Object] Object to be compared
# File lib/aspose_slides_cloud/models/table_cell_merge_options.rb, line 141 def eql?(o) self == o end
Calculates hash code according to all attributes. @return [Fixnum] Hash code
# File lib/aspose_slides_cloud/models/table_cell_merge_options.rb, line 147 def hash [first_row_index, first_cell_index, last_row_index, last_cell_index, allow_splitting].hash end
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
# File lib/aspose_slides_cloud/models/table_cell_merge_options.rb, line 96 def list_invalid_properties invalid_properties = Array.new if @first_row_index.nil? invalid_properties.push('invalid value for "first_row_index", first_row_index cannot be nil.') end if @first_cell_index.nil? invalid_properties.push('invalid value for "first_cell_index", first_cell_index cannot be nil.') end if @last_row_index.nil? invalid_properties.push('invalid value for "last_row_index", last_row_index cannot be nil.') end if @last_cell_index.nil? invalid_properties.push('invalid value for "last_cell_index", last_cell_index cannot be nil.') end invalid_properties end
Check to see if the all the properties in the model are valid @return true if the model is valid
# File lib/aspose_slides_cloud/models/table_cell_merge_options.rb, line 119 def valid? return false if @first_row_index.nil? return false if @first_cell_index.nil? return false if @last_row_index.nil? return false if @last_cell_index.nil? true end