Class: Bukovina::Importers::LanguageLink

Inherits:
Link
  • Object
show all
Defined in:
lib/bukovina/importers/language_link.rb

Direct Known Subclasses

BeingLink, PatericLink, ServiceLink, WikiLink

Instance Method Summary collapse

Instance Method Details

#importObject



5
6
7
8
9
10
11
# File 'lib/bukovina/importers/language_link.rb', line 5

def import
      @attrs.each do |attrs|
memory_attrs = attrs.delete( :memory )
attrs[ :info ] = Memory.where( memory_attrs ).first

self.class::TYPE.to_s.constantize.where( attrs ).first_or_create
end ; end