Sha256: fe183c11d0b5c23ea52685940d8dd22f2cc9574cfa449068f2304fc16f8c2cd6

Contents?: true

Size: 658 Bytes

Versions: 43

Compression:

Stored size: 658 Bytes

Contents

# frozen_string_literal: true
# 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

43 entries across 43 versions & 1 rubygems

Version Path
maestrano-connector-rails-2.3.6 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-2.3.5 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-2.3.4 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-2.3.3 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-2.3.2 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-2.3.1 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-2.3.0 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-2.2.1 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-2.2.0 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-2.1.3 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-2.1.2 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-2.1.1 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-2.1.0 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-2.0.2.pre.RC12 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-2.0.2.pre.RC11 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-2.0.2.pre.RC10 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-2.0.2.pre.RC8 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-2.0.2.pre.RC9 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-2.0.2.pre.RC7 lib/generators/connector/templates/complex_entity_example/contact.rb
maestrano-connector-rails-2.0.2.pre.RC6 lib/generators/connector/templates/complex_entity_example/contact.rb