Class: OoxmlParser::SchemeColor

Inherits:
Object
  • Object
show all
Defined in:
lib/ooxml_parser/common_parser/common_data/colors/scheme_color.rb

Overview

Class for working with SchemeColor

Instance Attribute Summary collapse

Instance Method Summary collapse

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_colorObject

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

#propertiesObject

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

#valueObject

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_sString

Returns result of convert of object to string.

Returns:

  • (String)

    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