Class: GroupBy
- Inherits:
-
Object
- Object
- GroupBy
- Defined in:
- lib/lilit_sql.rb
Instance Attribute Summary collapse
-
#keys ⇒ Object
Returns the value of attribute keys.
-
#query ⇒ Object
Returns the value of attribute query.
Instance Method Summary collapse
- #aggregate(&blk) ⇒ Object
-
#initialize(query, keys) ⇒ GroupBy
constructor
A new instance of GroupBy.
Constructor Details
#initialize(query, keys) ⇒ GroupBy
Returns a new instance of GroupBy.
191 192 193 194 |
# File 'lib/lilit_sql.rb', line 191 def initialize(query, keys) @query = query @keys = keys end |
Instance Attribute Details
#keys ⇒ Object
Returns the value of attribute keys.
189 190 191 |
# File 'lib/lilit_sql.rb', line 189 def keys @keys end |
#query ⇒ Object
Returns the value of attribute query.
189 190 191 |
# File 'lib/lilit_sql.rb', line 189 def query @query end |