Class: AsposeSlidesCloud::HandoutLayoutingOptions

Inherits:
SlidesLayoutOptions show all
Defined in:
lib/aspose_slides_cloud/models/handout_layouting_options.rb

Overview

Handout layouting options

Instance Attribute Summary collapse

Attributes inherited from SlidesLayoutOptions

#layout_type

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseObject

#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s

Constructor Details

#initialize(attributes = {}) ⇒ HandoutLayoutingOptions

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# 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

Instance Attribute Details

#handoutObject

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



29
30
31
# File 'lib/aspose_slides_cloud/models/handout_layouting_options.rb', line 29

def handout
  @handout
end

True to display comments on slide.



35
36
37
# File 'lib/aspose_slides_cloud/models/handout_layouting_options.rb', line 35

def print_comments
  @print_comments
end

True to draw frames around the displayed slides.



38
39
40
# File 'lib/aspose_slides_cloud/models/handout_layouting_options.rb', line 38

def print_frame_slide
  @print_frame_slide
end

True to print the displayed slide numbers.



32
33
34
# File 'lib/aspose_slides_cloud/models/handout_layouting_options.rb', line 32

def print_slide_numbers
  @print_slide_numbers
end

Class Method Details

.attribute_mapObject

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



41
42
43
44
45
46
47
48
# 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

.swagger_typesObject

Attribute type mapping.



51
52
53
54
55
56
57
58
# 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

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



111
112
113
114
115
116
117
118
119
# 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) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


123
124
125
# File 'lib/aspose_slides_cloud/models/handout_layouting_options.rb', line 123

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



129
130
131
# 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_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



85
86
87
88
# File 'lib/aspose_slides_cloud/models/handout_layouting_options.rb', line 85

def list_invalid_properties
  invalid_properties = super
  invalid_properties
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



92
93
94
95
96
97
# 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