Sha256: 14c45a25dff20341f5c784cd509d37d6cf56979601eac3aea12aab8a9a8b964f

Contents?: true

Size: 630 Bytes

Versions: 16

Compression:

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

16 entries across 16 versions & 1 rubygems

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