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.
168 |
# File 'lib/qreport/connection.rb', line 168 def initialize sql; @sql = sql.freeze; end |
Class Method Details
.new(sql) ⇒ Object
167 |
# File 'lib/qreport/connection.rb', line 167 def self.new sql; self === sql ? sql : super; end |
Instance Method Details
#to_s ⇒ Object
169 |
# File 'lib/qreport/connection.rb', line 169 def to_s; @sql; end |