Method: Activecube::DefinitionMethods#column_name
- Defined in:
- lib/activecube/definition_methods.rb
#column_name ⇒ Object
11 12 13 14 15 |
# File 'lib/activecube/definition_methods.rb', line 11 def column_name raise "Not defined column for a dimension or metric #{self.name}" if !column_names || column_names.empty? raise "Defined more than one column for a dimension or metric #{self.name}" if column_names.count>1 column_names.first end |