Class: Dossier::Query
- Inherits:
-
Object
- Object
- Dossier::Query
- Defined in:
- lib/dossier/query.rb
Instance Attribute Summary collapse
-
#report ⇒ Object
readonly
Returns the value of attribute report.
-
#string ⇒ Object
readonly
Returns the value of attribute string.
Instance Method Summary collapse
-
#initialize(report) ⇒ Query
constructor
A new instance of Query.
- #to_s ⇒ Object
Constructor Details
#initialize(report) ⇒ Query
Returns a new instance of Query.
6 7 8 9 |
# File 'lib/dossier/query.rb', line 6 def initialize(report) @report = report @string = report.sql.dup end |
Instance Attribute Details
#report ⇒ Object (readonly)
Returns the value of attribute report.
4 5 6 |
# File 'lib/dossier/query.rb', line 4 def report @report end |
#string ⇒ Object (readonly)
Returns the value of attribute string.
4 5 6 |
# File 'lib/dossier/query.rb', line 4 def string @string end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/dossier/query.rb', line 11 def to_s compile end |