Class: Alf::Engine::Rank::Cesure

Inherits:
Object
  • Object
show all
Includes:
Cesure
Defined in:
lib/alf-engine/alf/engine/rank/cesure.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Cesure

#each

Methods included from Cog

#each, #to_dot, #to_relation

Constructor Details

#initialize(operand, by, as) ⇒ Cesure

Creates an Rank::Cesure instance



16
17
18
19
20
# File 'lib/alf-engine/alf/engine/rank/cesure.rb', line 16

def initialize(operand, by, as)
  @operand = operand
  @by = by.to_attr_list
  @as = as
end

Instance Attribute Details

#asAttrName (readonly)

Returns Name of the introduced attribute.

Returns:

  • (AttrName)

    Name of the introduced attribute



13
14
15
# File 'lib/alf-engine/alf/engine/rank/cesure.rb', line 13

def as
  @as
end

#byAttrList (readonly)

Returns List of attributes that form the operand ordering.

Returns:

  • (AttrList)

    List of attributes that form the operand ordering



10
11
12
# File 'lib/alf-engine/alf/engine/rank/cesure.rb', line 10

def by
  @by
end

#operandEnumerable (readonly)

Returns The operand.

Returns:

  • (Enumerable)

    The operand



7
8
9
# File 'lib/alf-engine/alf/engine/rank/cesure.rb', line 7

def operand
  @operand
end