Class: LedgerWeb::Cell

Inherits:
Object
  • Object
show all
Defined in:
lib/ledger_web/report.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title, value) ⇒ Cell

Returns a new instance of Cell.



6
7
8
9
10
11
12
# File 'lib/ledger_web/report.rb', line 6

def initialize(title, value)
  @title = title
  @value = value
  @style = {}
  @text = value
  @align = 'left'
end

Instance Attribute Details

#alignObject

Returns the value of attribute align.



4
5
6
# File 'lib/ledger_web/report.rb', line 4

def align
  @align
end

#styleObject (readonly)

Returns the value of attribute style.



3
4
5
# File 'lib/ledger_web/report.rb', line 3

def style
  @style
end

#textObject

Returns the value of attribute text.



4
5
6
# File 'lib/ledger_web/report.rb', line 4

def text
  @text
end

#titleObject (readonly)

Returns the value of attribute title.



3
4
5
# File 'lib/ledger_web/report.rb', line 3

def title
  @title
end

#valueObject (readonly)

Returns the value of attribute value.



3
4
5
# File 'lib/ledger_web/report.rb', line 3

def value
  @value
end