Class: Addressbook::Contact::Address

Inherits:
Nested
  • Object
show all
Defined in:
lib/addressbook/contact.rb

Instance Method Summary collapse

Methods inherited from Nested

#initialize

Methods inherited from Resource

headers

Constructor Details

This class inherits a constructor from Addressbook::Contact::Nested

Instance Method Details

#full_addressObject



86
87
88
# File 'lib/addressbook/contact.rb', line 86

def full_address
  [line1, line2, line3].reject(&:blank?).join(' ') 
end

#locationObject



90
91
92
# File 'lib/addressbook/contact.rb', line 90

def location
  [zipcode, city, state].reject(&:blank?).join(' ')
end