Sha256: 8b2e5274ffb2c675c9113805fc4716fb807c90f68495c1e8b15873bf3a82cefb

Contents?: true

Size: 866 Bytes

Versions: 19

Compression:

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

19 entries across 19 versions & 1 rubygems

Version Path
maestrano-connector-rails-0.4.4 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-0.4.3 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-0.4.2 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-0.4.1 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-0.4.0 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-0.3.13 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-0.3.12 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-0.3.11 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-0.3.10 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-0.3.9 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-0.3.8 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-0.3.7 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-0.3.6 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-0.3.5 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-0.3.4 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-0.3.3 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-0.3.2 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-0.3.1 lib/generators/connector/templates/example_entity.rb
maestrano-connector-rails-0.3.0 lib/generators/connector/templates/example_entity.rb