Class: Mao::Query::Raw

Inherits:
Object
  • Object
show all
Defined in:
lib/mao/query.rb

Overview

A container for text that should be inserted raw into a query.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#textObject (readonly)

The raw SQL text.



18
19
20
# File 'lib/mao/query.rb', line 18

def text
  @text
end