Class: Qreport::ReportRun::Data
- Inherits:
-
Object
- Object
- Qreport::ReportRun::Data
- Defined in:
- lib/qreport/report_run/data.rb
Overview
Delays pulling in entire result set to determine columns of report result table.
Instance Attribute Summary collapse
-
#report_run ⇒ Object
Returns the value of attribute report_run.
Instance Method Summary collapse
- #columns ⇒ Object
- #error ⇒ Object
-
#initialize(report_run) ⇒ Data
constructor
A new instance of Data.
-
#method_missing(sel, *args, &blk) ⇒ Object
Delegate all other methods to the Connection::Query object.
- #rows ⇒ Object
- #type_names ⇒ Object
Constructor Details
#initialize(report_run) ⇒ Data
Returns a new instance of Data.
9 |
# File 'lib/qreport/report_run/data.rb', line 9 def initialize report_run; @report_run = report_run; end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sel, *args, &blk) ⇒ Object
Delegate all other methods to the Connection::Query object.
17 18 19 |
# File 'lib/qreport/report_run/data.rb', line 17 def method_missing sel, *args, &blk _select.send(sel, *args, &blk) end |
Instance Attribute Details
#report_run ⇒ Object
Returns the value of attribute report_run.
7 8 9 |
# File 'lib/qreport/report_run/data.rb', line 7 def report_run @report_run end |
Instance Method Details
#columns ⇒ Object
11 |
# File 'lib/qreport/report_run/data.rb', line 11 def columns; _select0.columns; end |
#error ⇒ Object
14 |
# File 'lib/qreport/report_run/data.rb', line 14 def error; _select0.error; end |
#rows ⇒ Object
13 |
# File 'lib/qreport/report_run/data.rb', line 13 def rows; _select.rows; end |
#type_names ⇒ Object
12 |
# File 'lib/qreport/report_run/data.rb', line 12 def type_names; _select0.type_names; end |