Class: Trufina::Elements::ResidenceAddressResponse
- Inherits:
-
Object
- Object
- Trufina::Elements::ResidenceAddressResponse
- Includes:
- HappyMapper, AllowCreationFromHash, EasyElementAccess
- Defined in:
- lib/elements.rb
Overview
Encapsulates Trufina’s address fields - has multiple street address fields
Instance Method Summary collapse
Methods included from EasyElementAccess
Methods included from AllowCreationFromHash
Instance Method Details
#street_address=(adr) ⇒ Object
129 130 131 132 |
# File 'lib/elements.rb', line 129 def street_address=(adr) self.street_addresses ||= [] self.street_addresses << adr end |
#to_s ⇒ Object
134 135 136 |
# File 'lib/elements.rb', line 134 def to_s [street_addresses[0], street_addresses[1], city, state, zip].compact.join(', ') end |