Class: Pivotable::Expression::Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/pivotable/expression/abstract.rb

Direct Known Subclasses

Calculation, Generic

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(model, name, options = {}) ⇒ Abstract

Returns a new instance of Abstract.



4
5
6
7
8
# File 'lib/pivotable/expression/abstract.rb', line 4

def initialize(model, name, options = {})
  @name  = name.to_s
  @model = model
  @via   = process_via options[:via]
end

Instance Attribute Details

#modelObject (readonly)

Returns the value of attribute model.



2
3
4
# File 'lib/pivotable/expression/abstract.rb', line 2

def model
  @model
end

#nameObject (readonly)

Returns the value of attribute name.



2
3
4
# File 'lib/pivotable/expression/abstract.rb', line 2

def name
  @name
end

#viaObject (readonly)

Returns the value of attribute via.



2
3
4
# File 'lib/pivotable/expression/abstract.rb', line 2

def via
  @via
end

Instance Method Details

#to_groupObject



14
15
16
# File 'lib/pivotable/expression/abstract.rb', line 14

def to_group
  not_implemented
end

#to_selectObject



10
11
12
# File 'lib/pivotable/expression/abstract.rb', line 10

def to_select
  not_implemented
end