Class: Mao::Query::Raw
- Inherits:
-
Object
- Object
- Mao::Query::Raw
- Defined in:
- lib/mao/query.rb
Overview
A container for text that should be inserted raw into a query.
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
The raw SQL text.
Instance Method Summary collapse
-
#initialize(text) ⇒ Raw
constructor
Creates the Mao::Query::Raw with SQL
text
.
Constructor Details
#initialize(text) ⇒ Raw
Creates the Mao::Query::Raw with SQL text
.
13 14 15 |
# File 'lib/mao/query.rb', line 13 def initialize(text) @text = text end |
Instance Attribute Details
#text ⇒ Object (readonly)
The raw SQL text.
18 19 20 |
# File 'lib/mao/query.rb', line 18 def text @text end |