Class: Athena::Formats::Lingo::KeyValue

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

Overview

“John Vorhauer*Vorhauer, John”

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



52
53
54
55
56
# File 'lib/athena/formats/lingo.rb', line 52

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