Sha256: 4c37d2b341fbbbb61a6dd02723f8e298ef814bdf017a13619549bcd719ff0faa
Contents?: true
Size: 757 Bytes
Versions: 9
Compression:
Stored size: 757 Bytes
Contents
# TODO # This file is provided as an example and should be removed # See README for explanation # class Entities::SubEntities::Lead < Maestrano::Connector::Rails::SubEntityBase # def external? # true # end # def entity_name # 'lead' # end # def map_to(name, entity, organization) # case name # when 'person' # Entities::SubEntities::LeadMapper.denormalize(entity).merge(is_lead: true) # 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