Module: BerkeleyLibrary::TIND::Mapping::CsvMultipleMapper
- Included in:
- TindFieldFromLeader, TindFieldFromMultipleMap
- Defined in:
- lib/berkeley_library/tind/mapping/csv_multiple_mapper.rb
Class Attribute Summary collapse
-
.rows ⇒ Object
Returns the value of attribute rows.
Instance Method Summary collapse
Class Attribute Details
.rows ⇒ Object
Returns the value of attribute rows.
9 10 11 |
# File 'lib/berkeley_library/tind/mapping/csv_multiple_mapper.rb', line 9 def rows @rows end |
Instance Method Details
#from_tags ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/berkeley_library/tind/mapping/csv_multiple_mapper.rb', line 13 def = [] CsvMultipleMapper.rows.each do |row| tag = row[:tag_origin] << tag unless .include?(tag) end end |
#rules ⇒ Object
22 23 24 |
# File 'lib/berkeley_library/tind/mapping/csv_multiple_mapper.rb', line 22 def rules .to_h { |tag| [Util.tag_symbol(tag), rules_on_tag(tag)] } end |