class AsposeSlidesCloud::HandoutLayoutingOptions

Handout layouting options

Attributes

handout[RW]

Specified how many pages and in what sequence will be placed on the page.

print_comments[RW]

True to display comments on slide.

print_frame_slide[RW]

True to draw frames around the displayed slides.

print_slide_numbers[RW]

True to print the displayed slide numbers.

Public Class Methods

attribute_map() click to toggle source

Attribute mapping from ruby-style variable name to JSON key.

Calls superclass method
# 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
new(attributes = {}) click to toggle source

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Calls superclass method
# 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
swagger_types() click to toggle source

Attribute type mapping.

Calls superclass method
# 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

Public Instance Methods

==(o) click to toggle source

Checks equality by comparing each attribute. @param [Object] Object to be compared

# 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
eql?(o) click to toggle source

@see the ‘==` method @param [Object] Object to be compared

# File lib/aspose_slides_cloud/models/handout_layouting_options.rb, line 123
def eql?(o)
  self == o
end
handout=(handout) click to toggle source

Custom attribute writer method checking allowed values (enum). @param [Object] handout Object to be assigned

# 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
hash() click to toggle source

Calculates hash code according to all attributes. @return [Fixnum] Hash code

# 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
list_invalid_properties() click to toggle source

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Calls superclass method
# File lib/aspose_slides_cloud/models/handout_layouting_options.rb, line 85
def list_invalid_properties
  invalid_properties = super
  invalid_properties
end
valid?() click to toggle source

Check to see if the all the properties in the model are valid @return true if the model is valid

Calls superclass method
# 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