Class: BatchAgg::AggregateDef

Inherits:
Struct
  • Object
show all
Defined in:
lib/batchagg.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



6
7
8
# File 'lib/batchagg.rb', line 6

def block
  @block
end

#columnObject

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



6
7
8
# File 'lib/batchagg.rb', line 6

def column
  @column
end

#expressionObject

Returns the value of attribute expression

Returns:

  • (Object)

    the current value of expression



6
7
8
# File 'lib/batchagg.rb', line 6

def expression
  @expression
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



6
7
8
# File 'lib/batchagg.rb', line 6

def name
  @name
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



6
7
8
# File 'lib/batchagg.rb', line 6

def options
  @options
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



6
7
8
# File 'lib/batchagg.rb', line 6

def type
  @type
end

Instance Method Details

#block?Boolean

Returns:

  • (Boolean)


9
# File 'lib/batchagg.rb', line 9

def block? = !block.nil?

#column_based?Boolean

Returns:

  • (Boolean)


7
# File 'lib/batchagg.rb', line 7

def column_based? = type == :column

#computed?Boolean

Returns:

  • (Boolean)


8
# File 'lib/batchagg.rb', line 8

def computed? = type == :computed