Class: Qreport::ReportRun::Data

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_runObject

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

#columnsObject



11
# File 'lib/qreport/report_run/data.rb', line 11

def columns;    _select0.columns; end

#errorObject



14
# File 'lib/qreport/report_run/data.rb', line 14

def error;      _select0.error; end

#rowsObject



13
# File 'lib/qreport/report_run/data.rb', line 13

def rows;       _select.rows; end

#type_namesObject



12
# File 'lib/qreport/report_run/data.rb', line 12

def type_names; _select0.type_names; end