Class: Ppl::Format::PostalAddress::OneLine

Inherits:
AddressBook
  • Object
show all
Defined in:
lib/ppl/format/postal_address/one_line.rb

Instance Method Summary collapse

Instance Method Details

#process(postal_address, table) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/ppl/format/postal_address/one_line.rb', line 3

def process(postal_address, table)
  table.add_row({
    :star         => format_star(postal_address),
    :address_id   => postal_address.id,
    :address_text => format_address_text(postal_address),
  })
end