module Activecube::DimensionDefinitionMethods

Attributes

fields[R]
identity[R]
identity_expression[R]

Private Instance Methods

field(*args) click to toggle source
# File lib/activecube/definition_methods.rb, line 44
def field *args
  name = args.first.to_sym
  (@fields ||= {} )[name] = args.second
end
identity_column(*args) click to toggle source
# File lib/activecube/definition_methods.rb, line 38
def identity_column *args
  raise "Identity already defined as #{identity} for #{self.name}" if @identity
  @identity = args.first
  @identity_expression = args.second
end