Class: LedgerWeb::Cell
- Inherits:
-
Object
- Object
- LedgerWeb::Cell
- Defined in:
- lib/ledger_web/report.rb
Instance Attribute Summary collapse
-
#align ⇒ Object
Returns the value of attribute align.
-
#style ⇒ Object
readonly
Returns the value of attribute style.
-
#text ⇒ Object
Returns the value of attribute text.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(title, value) ⇒ Cell
constructor
A new instance of Cell.
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
#align ⇒ Object
Returns the value of attribute align.
4 5 6 |
# File 'lib/ledger_web/report.rb', line 4 def align @align end |
#style ⇒ Object (readonly)
Returns the value of attribute style.
3 4 5 |
# File 'lib/ledger_web/report.rb', line 3 def style @style end |
#text ⇒ Object
Returns the value of attribute text.
4 5 6 |
# File 'lib/ledger_web/report.rb', line 4 def text @text end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
3 4 5 |
# File 'lib/ledger_web/report.rb', line 3 def title @title end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
3 4 5 |
# File 'lib/ledger_web/report.rb', line 3 def value @value end |