Sha256: 23dee0b39872c9512b1747dceac72d088c6213d5eb508c408079edec33b960b4

Contents?: true

Size: 627 Bytes

Versions: 17

Compression:

Stored size: 627 Bytes

Contents

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

#   def self.external?
#     true
#   end

#   def self.entity_name
#     'contact'
#   end

#   def self.mapper_classes
#     {
#       'person' => Entities::SubEntities::ContactMapper
#     }
#   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

Version data entries

17 entries across 17 versions & 1 rubygems

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