Class: Addressbook::Contact::Address
- Defined in:
- lib/addressbook/contact.rb
Instance Method Summary collapse
Methods inherited from Nested
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Addressbook::Contact::Nested
Instance Method Details
#full_address ⇒ Object
86 87 88 |
# File 'lib/addressbook/contact.rb', line 86 def full_address [line1, line2, line3].reject(&:blank?).join(' ') end |
#location ⇒ Object
90 91 92 |
# File 'lib/addressbook/contact.rb', line 90 def location [zipcode, city, state].reject(&:blank?).join(' ') end |