Sha256: 98c5a83eb9efa261750836ba8fdc6a1d74e7ba56c98d49cf55b96d36870f2fdd

Contents?: true

Size: 841 Bytes

Versions: 9

Compression:

Stored size: 841 Bytes

Contents

# 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 connec_entity_name
#     'ExampleEntity'
#   end

#   def external_entity_name
#     'Contact'
#   end

#   def mapper_class
#     ExampleEntityMapper
#   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

# 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

9 entries across 9 versions & 1 rubygems

Version Path
maestrano-connector-rails-0.2.20 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-0.2.19 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-0.2.18 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-0.2.17 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-0.2.16 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-0.2.15 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-0.2.14 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-0.2.13 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-0.2.12 lib/generators/connector/templates/example_entity.rb