Class: Writexlsx::Format::BorderState

Inherits:
Object
  • Object
show all
Defined in:
lib/write_xlsx/format/border_state.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBorderState

Returns a new instance of BorderState.



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/write_xlsx/format/border_state.rb', line 14

def initialize
  @index        = 0
  @count        = 0
  @bottom       = 0
  @bottom_color = 0x0
  @diag_border  = 0
  @diag_color   = 0x0
  @diag_type    = 0
  @left         = 0
  @left_color   = 0x0
  @right        = 0
  @right_color  = 0x0
  @top          = 0
  @top_color    = 0x0
end

Instance Attribute Details

#bottomObject

Returns the value of attribute bottom.



7
8
9
# File 'lib/write_xlsx/format/border_state.rb', line 7

def bottom
  @bottom
end

#bottom_colorObject

Returns the value of attribute bottom_color.



7
8
9
# File 'lib/write_xlsx/format/border_state.rb', line 7

def bottom_color
  @bottom_color
end

#countObject

Returns the value of attribute count.



7
8
9
# File 'lib/write_xlsx/format/border_state.rb', line 7

def count
  @count
end

#diag_borderObject

Returns the value of attribute diag_border.



7
8
9
# File 'lib/write_xlsx/format/border_state.rb', line 7

def diag_border
  @diag_border
end

#diag_colorObject

Returns the value of attribute diag_color.



7
8
9
# File 'lib/write_xlsx/format/border_state.rb', line 7

def diag_color
  @diag_color
end

#diag_typeObject

Returns the value of attribute diag_type.



7
8
9
# File 'lib/write_xlsx/format/border_state.rb', line 7

def diag_type
  @diag_type
end

#indexObject

Returns the value of attribute index.



7
8
9
# File 'lib/write_xlsx/format/border_state.rb', line 7

def index
  @index
end

#leftObject

Returns the value of attribute left.



7
8
9
# File 'lib/write_xlsx/format/border_state.rb', line 7

def left
  @left
end

#left_colorObject

Returns the value of attribute left_color.



7
8
9
# File 'lib/write_xlsx/format/border_state.rb', line 7

def left_color
  @left_color
end

#rightObject

Returns the value of attribute right.



7
8
9
# File 'lib/write_xlsx/format/border_state.rb', line 7

def right
  @right
end

#right_colorObject

Returns the value of attribute right_color.



7
8
9
# File 'lib/write_xlsx/format/border_state.rb', line 7

def right_color
  @right_color
end

#topObject

Returns the value of attribute top.



7
8
9
# File 'lib/write_xlsx/format/border_state.rb', line 7

def top
  @top
end

#top_colorObject

Returns the value of attribute top_color.



7
8
9
# File 'lib/write_xlsx/format/border_state.rb', line 7

def top_color
  @top_color
end

Instance Method Details

#initialize_copy(other) ⇒ Object



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/write_xlsx/format/border_state.rb', line 30

def initialize_copy(other)
  @index        = other.index
  @count        = other.count
  @bottom       = other.bottom
  @bottom_color = other.bottom_color
  @diag_border  = other.diag_border
  @diag_color   = other.diag_color
  @diag_type    = other.diag_type
  @left         = other.left
  @left_color   = other.left_color
  @right        = other.right
  @right_color  = other.right_color
  @top          = other.top
  @top_color    = other.top_color
end