Class: RenderSQL::Query::Result
- Inherits:
-
Struct
- Object
- Struct
- RenderSQL::Query::Result
- Includes:
- Enumerable
- Defined in:
- lib/render_sql/query.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#rows ⇒ Object
Returns the value of attribute rows.
Instance Method Summary collapse
Instance Attribute Details
#headers ⇒ Object
Returns the value of attribute headers
5 6 7 |
# File 'lib/render_sql/query.rb', line 5 def headers @headers end |
#rows ⇒ Object
Returns the value of attribute rows
5 6 7 |
# File 'lib/render_sql/query.rb', line 5 def rows @rows end |
Instance Method Details
#each(&block) ⇒ Object
8 9 10 11 12 |
# File 'lib/render_sql/query.rb', line 8 def each(&block) return rows.to_enum(:each) unless block_given? rows.each(&block) end |