Class: Rooq::DSL::Rollup
- Inherits:
-
Object
- Object
- Rooq::DSL::Rollup
- Defined in:
- lib/rooq/dsl/select_query.rb
Instance Attribute Summary collapse
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
Instance Method Summary collapse
-
#initialize(*fields) ⇒ Rollup
constructor
A new instance of Rollup.
Constructor Details
#initialize(*fields) ⇒ Rollup
Returns a new instance of Rollup.
295 296 297 298 |
# File 'lib/rooq/dsl/select_query.rb', line 295 def initialize(*fields) @fields = fields.flatten.freeze freeze end |
Instance Attribute Details
#fields ⇒ Object (readonly)
Returns the value of attribute fields.
293 294 295 |
# File 'lib/rooq/dsl/select_query.rb', line 293 def fields @fields end |