Class: CDMDEXER::LocationFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/cdmdexer/formatters.rb

Class Method Summary collapse

Class Method Details

.format(record) ⇒ Object



160
161
162
163
164
165
166
# File 'lib/cdmdexer/formatters.rb', line 160

def self.format(record)
  if record['latitu'] && record['longit'] && record['latitu'] != '' && record['longit'] != '' && record['latitu'] != {}
    "#{record['latitu']}, #{record['longit']}"
  else
    nil
  end
end