Class: Caboose::Address

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/caboose/address.rb

Instance Method Summary collapse

Instance Method Details

#name_and_addressObject


22
23
24
25
26
27
28
# File 'app/models/caboose/address.rb', line 22

def name_and_address
  str = "#{self.first_name} #{self.last_name}"
  str << "<br />#{self.address1}"      
  str << "<br />#{self.address2}" if self.address2 && self.address2.length > 0
  str << "<br />#{self.city}, #{self.state} #{self.zip}"
  return str
end