Sha256: 8cacd97256bf1c2b4a6528d2c4dc3b0e5ae7db2a87823d48403eaad5af507b57
Contents?: true
Size: 817 Bytes
Versions: 9
Compression:
Stored size: 817 Bytes
Contents
# TODO # This file is provided as an example and should be removed # See README for explanation # class Enities::SubEntities::Person < Maestrano::Connector::Rails::SubEntityBase # def external? # false # end # def entity_name # 'person' # end # def map_to(name, entity, organization) # case name # when 'lead' # Enities::SubEntities::LeadMapper.normalize(entity) # when 'contact' # Enities::SubEntities::ContactMapper.normalize(entity) # else # raise "Impossible mapping from #{self.entity_name} to #{name}" # end # end # def object_name_from_connec_entity_hash(entity) # "#{entity['first_name']} #{entity['last_name']}" # end # def object_name_from_external_entity_hash(entity) # "#{entity['FirstName']} #{entity['LastName']}" # end # end
Version data entries
9 entries across 9 versions & 1 rubygems