Class: Dorsale::Address

Inherits:
ApplicationRecord show all
Defined in:
app/models/dorsale/address.rb

Instance Method Summary collapse

Methods inherited from ApplicationRecord

last_created

Instance Method Details

#one_lineObject



6
7
8
9
# File 'app/models/dorsale/address.rb', line 6

def one_line
  zip_city = [zip, city].select(&:present?).join(' ')
  [street, street_bis, zip_city, country].select(&:present?).join(', ')
end