Class: Mpql::Formatters::RowBuilder
- Inherits:
-
Object
- Object
- Mpql::Formatters::RowBuilder
- Defined in:
- lib/mpql/formatters/row_builder.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#rows ⇒ Object
readonly
Returns the value of attribute rows.
Instance Method Summary collapse
-
#initialize(data) ⇒ RowBuilder
constructor
A new instance of RowBuilder.
Constructor Details
#initialize(data) ⇒ RowBuilder
Returns a new instance of RowBuilder.
8 9 10 |
# File 'lib/mpql/formatters/row_builder.rb', line 8 def initialize(data) @headers, @rows = build_table(data) end |
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
6 7 8 |
# File 'lib/mpql/formatters/row_builder.rb', line 6 def headers @headers end |
#rows ⇒ Object (readonly)
Returns the value of attribute rows.
6 7 8 |
# File 'lib/mpql/formatters/row_builder.rb', line 6 def rows @rows end |