Class: Rea::AspectType::Identification::Aspect

Inherits:
Base
  • Object
show all
Defined in:
lib/rea/aspect_type/identification.rb

Instance Attribute Summary

Attributes inherited from Base

#base

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Rea::AspectType::Base

Instance Method Details

#identifier(*names) ⇒ Object



27
28
29
30
31
32
33
34
# File 'lib/rea/aspect_type/identification.rb', line 27

def identifier *names
  $options = names.extract_options!
  names.each do |name|
    $default_id_type = "#{base.name.underscore}.#{name}"
    $options = {:name=>name,:type=>$default_id_type}.merge($options)
    identifiers[name] = Setup.new($options)
  end
end

#identifiersObject



23
24
25
# File 'lib/rea/aspect_type/identification.rb', line 23

def identifiers
  @identifiers ||= {}
end