Class: AsposeSlidesCloud::ExportOptions

Inherits:
BaseObject
  • Object
show all
Defined in:
lib/aspose_slides_cloud/models/export_options.rb

Overview

Represents export options for whole presentation.

Instance Attribute Summary collapse

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 = {}) ⇒ ExportOptions

Initializes the object

Parameters:

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

    Model attributes in the form of hash



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# File 'lib/aspose_slides_cloud/models/export_options.rb', line 61

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?(:'DefaultRegularFont')
    self.default_regular_font = attributes[:'DefaultRegularFont']
  end

  if attributes.has_key?(:'FontFallbackRules')
    if (value = attributes[:'FontFallbackRules']).is_a?(Array)
      self.font_fallback_rules = value
    end
  end

  if attributes.has_key?(:'FontSubstRules')
    if (value = attributes[:'FontSubstRules']).is_a?(Array)
      self.font_subst_rules = value
    end
  end

  if attributes.has_key?(:'Format')
    self.format = attributes[:'Format']
  end
end

Instance Attribute Details

#default_regular_fontObject

Default regular font for rendering the presentation.



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

def default_regular_font
  @default_regular_font
end

#font_fallback_rulesObject

Gets of sets list of font fallback rules.



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

def font_fallback_rules
  @font_fallback_rules
end

#font_subst_rulesObject

Gets of sets list of font substitution rules.



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

def font_subst_rules
  @font_subst_rules
end

#formatObject

Returns the value of attribute format.



37
38
39
# File 'lib/aspose_slides_cloud/models/export_options.rb', line 37

def format
  @format
end

Class Method Details

.attribute_mapObject

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



40
41
42
43
44
45
46
47
# File 'lib/aspose_slides_cloud/models/export_options.rb', line 40

def self.attribute_map
  {
    :'default_regular_font' => :'DefaultRegularFont',
    :'font_fallback_rules' => :'FontFallbackRules',
    :'font_subst_rules' => :'FontSubstRules',
    :'format' => :'Format',
  }
end

.swagger_typesObject

Attribute type mapping.



50
51
52
53
54
55
56
57
# File 'lib/aspose_slides_cloud/models/export_options.rb', line 50

def self.swagger_types
  {
    :'default_regular_font' => :'String',
    :'font_fallback_rules' => :'Array<FontFallbackRule>',
    :'font_subst_rules' => :'Array<FontSubstRule>',
    :'format' => :'String',
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



103
104
105
106
107
108
109
110
# File 'lib/aspose_slides_cloud/models/export_options.rb', line 103

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      default_regular_font == o.default_regular_font &&
      font_fallback_rules == o.font_fallback_rules &&
      font_subst_rules == o.font_subst_rules &&
      format == o.format
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


114
115
116
# File 'lib/aspose_slides_cloud/models/export_options.rb', line 114

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



120
121
122
# File 'lib/aspose_slides_cloud/models/export_options.rb', line 120

def hash
  [default_regular_font, font_fallback_rules, font_subst_rules, format].hash
end

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



90
91
92
93
# File 'lib/aspose_slides_cloud/models/export_options.rb', line 90

def list_invalid_properties
  invalid_properties = Array.new
  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



97
98
99
# File 'lib/aspose_slides_cloud/models/export_options.rb', line 97

def valid?
  true
end