Sha256: 4774ea8e2722c7b47a213dffe3dd551cce67cb4b051e5534ce06e2df41d9a4b4
Contents?: true
Size: 598 Bytes
Versions: 5
Compression:
Stored size: 598 Bytes
Contents
module Parliament module Decorators module ContactPoint def postal_addresses respond_to?(:contactPointHasPostalAddress) ? contactPointHasPostalAddress : [] end def email instance_variable_get('@email'.to_sym).nil? ? '' : instance_variable_get('@email'.to_sym) end def phone_number respond_to?(:phoneNumber) ? phoneNumber : '' end def fax_number respond_to?(:faxNumber) ? faxNumber : '' end def person respond_to?(:contactPointHasPerson) ? contactPointHasPerson : [] end end end end
Version data entries
5 entries across 5 versions & 1 rubygems