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