class AsposeSlidesCloud::ColorScheme
Slide’s color scheme DTO
Attributes
First accent color.
Second accent color.
Third accent color.
Fourth accent color.
Fifth accent color.
Sixth accent color.
First dark color.
Second dark color.
Visited hyperlink color.
Hyperlink
color/
First light color.
Second light color.
Public Class Methods
Attribute mapping from ruby-style variable name to JSON key.
# 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
Initializes the object @param [Hash] attributes Model attributes in the form of hash
# 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
Attribute type mapping.
# 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
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
@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
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
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
# File lib/aspose_slides_cloud/models/color_scheme.rb, line 156 def list_invalid_properties invalid_properties = super invalid_properties end
Check to see if the all the properties in the model are valid @return true if the model is valid
# File lib/aspose_slides_cloud/models/color_scheme.rb, line 163 def valid? return false if !super true end