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

Inherits:
Base show all
Defined in:
lib/athena/formats/lingo.rb

Overview

“Fax;Faxkopie;Telefaxn”

Class Method Summary collapse

Methods inherited from Base

deferred?

Methods inherited from Athena::Formats

[], deferred?, formats, #parse, valid_format?

Class Method Details

.convert(record) ⇒ Object



127
128
129
130
131
132
133
134
135
# File 'lib/athena/formats/lingo.rb', line 127

def self.convert(record)
  super.map { |terms|
    next unless check_number_of_arguments('> 1', terms.size) { |actual|
      actual > 1
    }

    terms.join(';')
  }.compact
end