# encoding: UTF-8 module SportDb class AssocReader include LogUtils::Logging ## make models available by default with namespace # e.g. lets you use Usage instead of Model::Usage include Models attr_reader :include_path def initialize( include_path, opts = {} ) @include_path = include_path end def read( name, more_attribs={} ) reader = ValuesReaderV2.new( name, include_path, more_attribs ) reader.each_line do |new_attributes, values| Assoc.create_or_update_from_values( new_attributes, values ) end # each lines end end # class AssocReader end # module SportDb