Sha256: b3ae3394dffa05b9f6e02a3d7713f2a6bfb43c80c1331be3c132333d09739d8c

Contents?: true

Size: 683 Bytes

Versions: 12

Compression:

Stored size: 683 Bytes

Contents

# TODO
# This file is provided as an example and should be removed
# See README for explanation
# class Entities::SubEntities::Person < Maestrano::Connector::Rails::SubEntityBase
#   def self.external?
#     false
#   end

#   def self.entity_name
#     'person'
#   end

#   def self.mapper_classes
#     {
#       'lead' => Entities::SubEntities::LeadMapper,
#       'contact' => 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

12 entries across 12 versions & 1 rubygems

Version Path
maestrano-connector-rails-1.3.4 lib/generators/connector/templates/complex_entity_example/person.rb
maestrano-connector-rails-1.3.3 lib/generators/connector/templates/complex_entity_example/person.rb
maestrano-connector-rails-1.3.2 lib/generators/connector/templates/complex_entity_example/person.rb
maestrano-connector-rails-1.3.1 lib/generators/connector/templates/complex_entity_example/person.rb
maestrano-connector-rails-1.3.0 lib/generators/connector/templates/complex_entity_example/person.rb
maestrano-connector-rails-1.2.3 lib/generators/connector/templates/complex_entity_example/person.rb
maestrano-connector-rails-1.2.2 lib/generators/connector/templates/complex_entity_example/person.rb
maestrano-connector-rails-1.2.1 lib/generators/connector/templates/complex_entity_example/person.rb
maestrano-connector-rails-1.2.0 lib/generators/connector/templates/complex_entity_example/person.rb
maestrano-connector-rails-1.1.2 lib/generators/connector/templates/complex_entity_example/person.rb
maestrano-connector-rails-1.1.1 lib/generators/connector/templates/complex_entity_example/person.rb
maestrano-connector-rails-1.1.0 lib/generators/connector/templates/complex_entity_example/person.rb