Sha256: b76c5f1b86324d3a82d31fba7b414a4c52ff6dc4ed37031fea11558795a6ad8c

Contents?: true

Size: 862 Bytes

Versions: 17

Compression:

Stored size: 862 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 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

17 entries across 17 versions & 1 rubygems

Version Path
maestrano-connector-rails-1.3.4 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-1.3.3 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-1.3.2 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-1.3.1 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-1.3.0 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-1.2.3 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-1.2.2 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-1.2.1 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-1.2.0 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-1.1.2 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-1.1.1 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-1.1.0 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-1.0.4 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-1.0.3 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-1.0.2 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-1.0.1 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-1.0.0 lib/generators/connector/templates/example_entity.rb