Class: Alf::Engine::Quota::Cesure
- Inherits:
-
Object
- Object
- Alf::Engine::Quota::Cesure
- Includes:
- Cesure, Alf::Engine::Quota
- Defined in:
- lib/alf/engine/quota/cesure.rb
Constant Summary
Constants included from Cog
Cog::EMPTY_CHILDREN, Cog::EMPTY_OPTIONS
Instance Attribute Summary collapse
-
#by ⇒ AttrList
readonly
List of attributes for 'quota by'.
-
#operand ⇒ Enumerable
readonly
The operand.
-
#summarization ⇒ Summarization
readonly
Quota computations as a summarization.
Attributes included from Compiler::Cog
Instance Method Summary collapse
- #arguments ⇒ Object
-
#initialize(operand, by, summarization, expr = nil, compiler = nil) ⇒ Cesure
constructor
Creates an Quota::Cesure instance.
Methods included from Cesure
Methods included from Cog
#children, #each, #options, #to_s
Methods included from Compiler::Cog
#cog_orders, #orderedby?, #relation_type, #to_ascii_tree, #to_cog, #to_relation
Constructor Details
#initialize(operand, by, summarization, expr = nil, compiler = nil) ⇒ Cesure
Creates an Quota::Cesure instance
17 18 19 20 21 22 |
# File 'lib/alf/engine/quota/cesure.rb', line 17 def initialize(operand, by, summarization, expr = nil, compiler = nil) super(expr, compiler) @operand = operand @by = by.to_attr_list @summarization = summarization end |
Instance Attribute Details
#by ⇒ AttrList (readonly)
Returns List of attributes for 'quota by'.
11 12 13 |
# File 'lib/alf/engine/quota/cesure.rb', line 11 def by @by end |
#operand ⇒ Enumerable (readonly)
Returns The operand.
8 9 10 |
# File 'lib/alf/engine/quota/cesure.rb', line 8 def operand @operand end |
#summarization ⇒ Summarization (readonly)
Returns Quota computations as a summarization.
14 15 16 |
# File 'lib/alf/engine/quota/cesure.rb', line 14 def summarization @summarization end |
Instance Method Details
#arguments ⇒ Object
24 25 26 |
# File 'lib/alf/engine/quota/cesure.rb', line 24 def arguments [ by, summarization ] end |