Class: AsposeSlidesCloud::ColorScheme
- Inherits:
-
BaseObject
- Object
- BaseObject
- AsposeSlidesCloud::ColorScheme
- Defined in:
- lib/aspose_slides_cloud/models/color_scheme.rb
Instance Attribute Summary collapse
-
#accent1 ⇒ Object
Returns the value of attribute accent1.
-
#accent2 ⇒ Object
Returns the value of attribute accent2.
-
#accent3 ⇒ Object
Returns the value of attribute accent3.
-
#accent4 ⇒ Object
Returns the value of attribute accent4.
-
#accent5 ⇒ Object
Returns the value of attribute accent5.
-
#accent6 ⇒ Object
Returns the value of attribute accent6.
-
#alternate_links ⇒ Object
Returns the value of attribute alternate_links.
-
#dark1 ⇒ Object
Returns the value of attribute dark1.
-
#dark2 ⇒ Object
Returns the value of attribute dark2.
-
#followed_hyperlink ⇒ Object
Returns the value of attribute followed_hyperlink.
-
#hyperlink ⇒ Object
Returns the value of attribute hyperlink.
-
#light1 ⇒ Object
Returns the value of attribute light1.
-
#light2 ⇒ Object
Returns the value of attribute light2.
-
#links ⇒ Object
Returns the value of attribute links.
-
#self_uri ⇒ Object
Returns the value of attribute self_uri.
Class Method Summary collapse
-
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ColorScheme
constructor
A new instance of ColorScheme.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ ColorScheme
Returns a new instance of ColorScheme.
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
# File 'lib/aspose_slides_cloud/models/color_scheme.rb', line 79 def initialize(attributes = {}) return if !attributes.is_a?(Hash) || attributes.empty? # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'Accent1'] self.accent1 = attributes[:'Accent1'] end if attributes[:'Accent2'] self.accent2 = attributes[:'Accent2'] end if attributes[:'Accent3'] self.accent3 = attributes[:'Accent3'] end if attributes[:'Accent4'] self.accent4 = attributes[:'Accent4'] end if attributes[:'Accent5'] self.accent5 = attributes[:'Accent5'] end if attributes[:'Accent6'] self.accent6 = attributes[:'Accent6'] end if attributes[:'Dark1'] self.dark1 = attributes[:'Dark1'] end if attributes[:'Dark2'] self.dark2 = attributes[:'Dark2'] end if attributes[:'FollowedHyperlink'] self.followed_hyperlink = attributes[:'FollowedHyperlink'] end if attributes[:'Hyperlink'] self.hyperlink = attributes[:'Hyperlink'] end if attributes[:'Light1'] self.light1 = attributes[:'Light1'] end if attributes[:'Light2'] self.light2 = attributes[:'Light2'] end if attributes[:'SelfUri'] self.self_uri = attributes[:'SelfUri'] end if attributes[:'AlternateLinks'] if (value = attributes[:'AlternateLinks']).is_a?(Array) self.alternate_links = value end end if attributes[:'Links'] if (value = attributes[:'Links']).is_a?(Array) self.links = value end end end |
Instance Attribute Details
#accent1 ⇒ Object
Returns the value of attribute accent1.
4 5 6 |
# File 'lib/aspose_slides_cloud/models/color_scheme.rb', line 4 def accent1 @accent1 end |
#accent2 ⇒ Object
Returns the value of attribute accent2.
4 5 6 |
# File 'lib/aspose_slides_cloud/models/color_scheme.rb', line 4 def accent2 @accent2 end |
#accent3 ⇒ Object
Returns the value of attribute accent3.
4 5 6 |
# File 'lib/aspose_slides_cloud/models/color_scheme.rb', line 4 def accent3 @accent3 end |
#accent4 ⇒ Object
Returns the value of attribute accent4.
4 5 6 |
# File 'lib/aspose_slides_cloud/models/color_scheme.rb', line 4 def accent4 @accent4 end |
#accent5 ⇒ Object
Returns the value of attribute accent5.
4 5 6 |
# File 'lib/aspose_slides_cloud/models/color_scheme.rb', line 4 def accent5 @accent5 end |
#accent6 ⇒ Object
Returns the value of attribute accent6.
4 5 6 |
# File 'lib/aspose_slides_cloud/models/color_scheme.rb', line 4 def accent6 @accent6 end |
#alternate_links ⇒ Object
Returns the value of attribute alternate_links.
4 5 6 |
# File 'lib/aspose_slides_cloud/models/color_scheme.rb', line 4 def alternate_links @alternate_links end |
#dark1 ⇒ Object
Returns the value of attribute dark1.
4 5 6 |
# File 'lib/aspose_slides_cloud/models/color_scheme.rb', line 4 def dark1 @dark1 end |
#dark2 ⇒ Object
Returns the value of attribute dark2.
4 5 6 |
# File 'lib/aspose_slides_cloud/models/color_scheme.rb', line 4 def dark2 @dark2 end |
#followed_hyperlink ⇒ Object
Returns the value of attribute followed_hyperlink.
4 5 6 |
# File 'lib/aspose_slides_cloud/models/color_scheme.rb', line 4 def followed_hyperlink @followed_hyperlink end |
#hyperlink ⇒ Object
Returns the value of attribute hyperlink.
4 5 6 |
# File 'lib/aspose_slides_cloud/models/color_scheme.rb', line 4 def hyperlink @hyperlink end |
#light1 ⇒ Object
Returns the value of attribute light1.
4 5 6 |
# File 'lib/aspose_slides_cloud/models/color_scheme.rb', line 4 def light1 @light1 end |
#light2 ⇒ Object
Returns the value of attribute light2.
4 5 6 |
# File 'lib/aspose_slides_cloud/models/color_scheme.rb', line 4 def light2 @light2 end |
#links ⇒ Object
Returns the value of attribute links.
4 5 6 |
# File 'lib/aspose_slides_cloud/models/color_scheme.rb', line 4 def links @links end |
#self_uri ⇒ Object
Returns the value of attribute self_uri.
4 5 6 |
# File 'lib/aspose_slides_cloud/models/color_scheme.rb', line 4 def self_uri @self_uri end |
Class Method Details
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/aspose_slides_cloud/models/color_scheme.rb', line 6 def self.attribute_map { # :'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', # :'self_uri' => :'SelfUri', # :'alternate_links' => :'AlternateLinks', # :'links' => :'Links' } end |
.swagger_types ⇒ Object
attribute type
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/aspose_slides_cloud/models/color_scheme.rb', line 58 def self.swagger_types { :'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', :'self_uri' => :'ResourceUri', :'alternate_links' => :'Array<ResourceUri>', :'links' => :'Array<ResourceUri>' } end |