Class: Athena::Formats::Lingo::MultiValue

Inherits:
Athena::Formats::Lingo show all
Defined in:
lib/athena/formats/lingo.rb

Overview

“Fax;Faxkopie;Telefax”

Constant Summary collapse

SEPARATOR =
';'

Constants inherited from Athena::Formats::Lingo

MultiKey

Instance Attribute Summary

Attributes inherited from Base

#config, #output, #record_element

Instance Method Summary collapse

Methods inherited from Athena::Formats::Lingo

#deferred?

Methods inherited from Base

#deferred?, directions, format, has_direction?, init, #init, #parse, #raw?, #run

Instance Method Details

#convert(record) ⇒ Object



82
83
84
85
86
87
88
# File 'lib/athena/formats/lingo.rb', line 82

def convert(record)
  super.map { |terms|
    terms.join(SEPARATOR) if check_args('> 1', terms.size) { |actual|
      actual > 1
    }
  }.compact
end