Sha256: d9104b185aab334918a85e85ff3711195299956d8856deebaa919129120458e9
Contents?: true
Size: 718 Bytes
Versions: 17
Compression:
Stored size: 718 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 def incumbency respond_to?(:contactPointHasIncumbency) ? contactPointHasIncumbency.first : nil end end end end
Version data entries
17 entries across 17 versions & 1 rubygems