class AsposeSlidesCloud::HandoutLayoutingOptions
Handout layouting options
Attributes
Specified how many pages and in what sequence will be placed on the page.
True to display comments on slide.
True to draw frames around the displayed slides.
True to print the displayed slide numbers.
Public Class Methods
Source
# File lib/aspose_slides_cloud/models/handout_layouting_options.rb, line 41 def self.attribute_map super.merge({ :'handout' => :'Handout', :'print_slide_numbers' => :'PrintSlideNumbers', :'print_comments' => :'PrintComments', :'print_frame_slide' => :'PrintFrameSlide', }) end
Attribute mapping from ruby-style variable name to JSON key.
Source
# File lib/aspose_slides_cloud/models/handout_layouting_options.rb, line 62 def initialize(attributes = {}) super if attributes.has_key?(:'Handout') self.handout = attributes[:'Handout'] end if attributes.has_key?(:'PrintSlideNumbers') self.print_slide_numbers = attributes[:'PrintSlideNumbers'] end if attributes.has_key?(:'PrintComments') self.print_comments = attributes[:'PrintComments'] end if attributes.has_key?(:'PrintFrameSlide') self.print_frame_slide = attributes[:'PrintFrameSlide'] end self.layout_type = 'Handout' end
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Source
# File lib/aspose_slides_cloud/models/handout_layouting_options.rb, line 51 def self.swagger_types super.merge({ :'handout' => :'String', :'print_slide_numbers' => :'BOOLEAN', :'print_comments' => :'BOOLEAN', :'print_frame_slide' => :'BOOLEAN', }) end
Attribute type mapping.
Public Instance Methods
Source
# File lib/aspose_slides_cloud/models/handout_layouting_options.rb, line 111 def ==(o) return true if self.equal?(o) self.class == o.class && layout_type == o.layout_type && handout == o.handout && print_slide_numbers == o.print_slide_numbers && print_comments == o.print_comments && print_frame_slide == o.print_frame_slide end
Checks equality by comparing each attribute. @param [Object] Object to be compared
Source
# File lib/aspose_slides_cloud/models/handout_layouting_options.rb, line 123 def eql?(o) self == o end
@see the ‘==` method @param [Object] Object to be compared
Source
# File lib/aspose_slides_cloud/models/handout_layouting_options.rb, line 101 def handout=(handout) validator = EnumAttributeValidator.new('String', ['Handouts1', 'Handouts2', 'Handouts3', 'Handouts4Horizontal', 'Handouts4Vertical', 'Handouts6Horizontal', 'Handouts6Vertical', 'Handouts9Horizontal', 'Handouts9Vertical']) unless validator.valid?(handout) fail ArgumentError, 'invalid value for "handout", must be one of #{validator.allowable_values}.' end @handout = handout end
Custom attribute writer method checking allowed values (enum). @param [Object] handout Object to be assigned
Source
# File lib/aspose_slides_cloud/models/handout_layouting_options.rb, line 129 def hash [layout_type, handout, print_slide_numbers, print_comments, print_frame_slide].hash end
Calculates hash code according to all attributes. @return [Fixnum] Hash code
Source
# File lib/aspose_slides_cloud/models/handout_layouting_options.rb, line 85 def list_invalid_properties invalid_properties = super invalid_properties end
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Source
# File lib/aspose_slides_cloud/models/handout_layouting_options.rb, line 92 def valid? return false if !super handout_validator = EnumAttributeValidator.new('String', ['Handouts1', 'Handouts2', 'Handouts3', 'Handouts4Horizontal', 'Handouts4Vertical', 'Handouts6Horizontal', 'Handouts6Vertical', 'Handouts9Horizontal', 'Handouts9Vertical']) return false unless handout_validator.valid?(@handout) true end
Check to see if the all the properties in the model are valid @return true if the model is valid