Sha256: b0cde54049680f6611a057d0623e0217af989be5f23a18726a561c0756d62635
Contents?: true
Size: 893 Bytes
Versions: 1
Compression:
Stored size: 893 Bytes
Contents
# frozen_string_literal: true # TODO # This file is provided as an example and should be removed # One such file needs to be created for each synchronizable entity, # with its associated mapper # class Entities::ExampleEntity < Maestrano::Connector::Rails::Entity # def self.connec_entity_name # 'ExampleEntity' # end # def self.external_entity_name # 'Contact' # end # def self.mapper_class # ExampleEntityMapper # end # def self.object_name_from_connec_entity_hash(entity) # "#{entity['first_name']} #{entity['last_name']}" # end # def self.object_name_from_external_entity_hash(entity) # "#{entity['FirstName']} #{entity['LastName']}" # end # end # class ExampleEntityMapper # extend HashMapper # map from('title'), to('Salutation') # map from('first_name'), to('FirstName') # map from('address_work/billing2/city'), to('City') # end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
maestrano-connector-rails-1.3.5 | lib/generators/connector/templates/example_entity.rb |