Sha256: ae0c36530c67d344bce1ec35abf2fc66e4c8254bbbf189349e6cc4dbf14ea602

Contents?: true

Size: 652 Bytes

Versions: 43

Compression:

Stored size: 652 Bytes

Contents

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

#   def self.external?
#     true
#   end

#   def self.entity_name
#     'lead'
#   end

#   def self.mapper_classes
#     {
#       'person' => Entities::SubEntities::LeadMapper
#     }
#   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/lead.rb
maestrano-connector-rails-2.3.5 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-2.3.4 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-2.3.3 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-2.3.2 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-2.3.1 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-2.3.0 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-2.2.1 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-2.2.0 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-2.1.3 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-2.1.2 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-2.1.1 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-2.1.0 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-2.0.2.pre.RC12 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-2.0.2.pre.RC11 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-2.0.2.pre.RC10 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-2.0.2.pre.RC8 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-2.0.2.pre.RC9 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-2.0.2.pre.RC7 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-2.0.2.pre.RC6 lib/generators/connector/templates/complex_entity_example/lead.rb