Sha256: bd33bbcbefb3ee341d06b7a4ae8a708daeefeadbf36690aba12420c036dcb47d

Contents?: true

Size: 513 Bytes

Versions: 11

Compression:

Stored size: 513 Bytes

Contents

# TODO
# This file is provided as an example and should be removed
# See README for explanation
# class Entities::SubEntities::Contact < Maestrano::Connector::Rails::SubEntityBase

#   def external?
#     true
#   end

#   def entity_name
#     'contact'
#   end

#   def map_to(name, entity, organization)
#     case name
#     when 'person'
#       Entities::SubEntities::ContactMapper.denormalize(entity)
#     else
#       raise "Impossible mapping from #{self.entity_name} to #{name}"
#     end
#   end
# end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
maestrano-connector-rails-0.2.11 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-0.2.10 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-0.2.9 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-0.2.8 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-0.2.7 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-0.2.5 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-0.2.4 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-0.2.3 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-0.2.2 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-0.2.0 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-0.0.1 lib/generators/connector/templates/complex_entity_example/contact.rb