class AsposeSlidesCloud::ColorScheme

Slide’s color scheme DTO

Attributes

accent1[RW]

First accent color.

accent2[RW]

Second accent color.

accent3[RW]

Third accent color.

accent4[RW]

Fourth accent color.

accent5[RW]

Fifth accent color.

accent6[RW]

Sixth accent color.

dark1[RW]

First dark color.

dark2[RW]

Second dark color.

light1[RW]

First light color.

light2[RW]

Second light color.

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/color_scheme.rb, line 65
def self.attribute_map
  super.merge({
    :'accent1' => :'Accent1',
    :'accent2' => :'Accent2',
    :'accent3' => :'Accent3',
    :'accent4' => :'Accent4',
    :'accent5' => :'Accent5',
    :'accent6' => :'Accent6',
    :'dark1' => :'Dark1',
    :'dark2' => :'Dark2',
    :'followed_hyperlink' => :'FollowedHyperlink',
    :'hyperlink' => :'Hyperlink',
    :'light1' => :'Light1',
    :'light2' => :'Light2',
  })
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/color_scheme.rb, line 102
def initialize(attributes = {})
  super

  if attributes.has_key?(:'Accent1')
    self.accent1 = attributes[:'Accent1']
  end

  if attributes.has_key?(:'Accent2')
    self.accent2 = attributes[:'Accent2']
  end

  if attributes.has_key?(:'Accent3')
    self.accent3 = attributes[:'Accent3']
  end

  if attributes.has_key?(:'Accent4')
    self.accent4 = attributes[:'Accent4']
  end

  if attributes.has_key?(:'Accent5')
    self.accent5 = attributes[:'Accent5']
  end

  if attributes.has_key?(:'Accent6')
    self.accent6 = attributes[:'Accent6']
  end

  if attributes.has_key?(:'Dark1')
    self.dark1 = attributes[:'Dark1']
  end

  if attributes.has_key?(:'Dark2')
    self.dark2 = attributes[:'Dark2']
  end

  if attributes.has_key?(:'FollowedHyperlink')
    self.followed_hyperlink = attributes[:'FollowedHyperlink']
  end

  if attributes.has_key?(:'Hyperlink')
    self.hyperlink = attributes[:'Hyperlink']
  end

  if attributes.has_key?(:'Light1')
    self.light1 = attributes[:'Light1']
  end

  if attributes.has_key?(:'Light2')
    self.light2 = attributes[:'Light2']
  end
end
swagger_types() click to toggle source

Attribute type mapping.

Calls superclass method
# File lib/aspose_slides_cloud/models/color_scheme.rb, line 83
def self.swagger_types
  super.merge({
    :'accent1' => :'String',
    :'accent2' => :'String',
    :'accent3' => :'String',
    :'accent4' => :'String',
    :'accent5' => :'String',
    :'accent6' => :'String',
    :'dark1' => :'String',
    :'dark2' => :'String',
    :'followed_hyperlink' => :'String',
    :'hyperlink' => :'String',
    :'light1' => :'String',
    :'light2' => :'String',
  })
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/color_scheme.rb, line 170
def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      self_uri == o.self_uri &&
      alternate_links == o.alternate_links &&
      accent1 == o.accent1 &&
      accent2 == o.accent2 &&
      accent3 == o.accent3 &&
      accent4 == o.accent4 &&
      accent5 == o.accent5 &&
      accent6 == o.accent6 &&
      dark1 == o.dark1 &&
      dark2 == o.dark2 &&
      followed_hyperlink == o.followed_hyperlink &&
      hyperlink == o.hyperlink &&
      light1 == o.light1 &&
      light2 == o.light2
end
eql?(o) click to toggle source

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

# File lib/aspose_slides_cloud/models/color_scheme.rb, line 191
def eql?(o)
  self == o
end
hash() click to toggle source

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

# File lib/aspose_slides_cloud/models/color_scheme.rb, line 197
def hash
  [self_uri, alternate_links, accent1, accent2, accent3, accent4, accent5, accent6, dark1, dark2, followed_hyperlink, hyperlink, light1, light2].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/color_scheme.rb, line 156
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/color_scheme.rb, line 163
def valid?
  return false if !super
  true
end