Class: OoxmlParser::SchemeColor
- Inherits:
-
Object
- Object
- OoxmlParser::SchemeColor
- Defined in:
- lib/ooxml_parser/common_parser/common_data/colors/scheme_color.rb
Overview
Class for working with SchemeColor
Instance Attribute Summary collapse
-
#converted_color ⇒ Object
Returns the value of attribute converted_color.
-
#properties ⇒ Object
Returns the value of attribute properties.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value = nil, converted_color = 0, parent: nil) ⇒ SchemeColor
constructor
A new instance of SchemeColor.
-
#to_s ⇒ String
Result of convert of object to string.
Constructor Details
#initialize(value = nil, converted_color = 0, parent: nil) ⇒ SchemeColor
Returns a new instance of SchemeColor.
8 9 10 11 12 |
# File 'lib/ooxml_parser/common_parser/common_data/colors/scheme_color.rb', line 8 def initialize(value = nil, converted_color = 0, parent: nil) @value = value @converted_color = converted_color @parent = parent end |
Instance Attribute Details
#converted_color ⇒ Object
Returns the value of attribute converted_color.
6 7 8 |
# File 'lib/ooxml_parser/common_parser/common_data/colors/scheme_color.rb', line 6 def converted_color @converted_color end |
#properties ⇒ Object
Returns the value of attribute properties.
6 7 8 |
# File 'lib/ooxml_parser/common_parser/common_data/colors/scheme_color.rb', line 6 def properties @properties end |
#value ⇒ Object
Returns the value of attribute value.
6 7 8 |
# File 'lib/ooxml_parser/common_parser/common_data/colors/scheme_color.rb', line 6 def value @value end |
Instance Method Details
#to_s ⇒ String
Returns result of convert of object to string.
15 16 17 |
# File 'lib/ooxml_parser/common_parser/common_data/colors/scheme_color.rb', line 15 def to_s @converted_color.to_s end |