Class: Trufina::Elements::ResidenceAddressResponse

Inherits:
Object
  • Object
show all
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

#present_and_verified

Methods included from AllowCreationFromHash

#initialize

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_sObject



134
135
136
# File 'lib/elements.rb', line 134

def to_s
  [street_addresses[0], street_addresses[1], city, state, zip].compact.join(', ')
end