Class: Qreport::Connection::SQL
- Inherits:
-
Object
- Object
- Qreport::Connection::SQL
- Defined in:
- lib/qreport/connection.rb
Overview
Represents raw SQL.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(sql) ⇒ SQL
constructor
A new instance of SQL.
- #to_s ⇒ Object
Constructor Details
#initialize(sql) ⇒ SQL
Returns a new instance of SQL.
179 |
# File 'lib/qreport/connection.rb', line 179 def initialize sql; @sql = sql.freeze; end |
Class Method Details
.new(sql) ⇒ Object
178 |
# File 'lib/qreport/connection.rb', line 178 def self.new sql; self === sql ? sql : super; end |
Instance Method Details
#to_s ⇒ Object
180 |
# File 'lib/qreport/connection.rb', line 180 def to_s; @sql; end |