Sha256: f39a52bcc95a3a690f63d939eac8cb4b1cb30cf3726bcfd7ebbdb01654f53842

Contents?: true

Size: 525 Bytes

Versions: 11

Compression:

Stored size: 525 Bytes

Contents

# 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 external?
#     true
#   end

#   def entity_name
#     'lead'
#   end

#   def map_to(name, entity, organization)
#     case name
#     when 'person'
#       Entities::SubEntities::LeadMapper.denormalize(entity).merge(is_lead: true)
#     else
#       raise "Impossible mapping from #{self.entity_name} to #{name}"
#     end
#   end
# end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
maestrano-connector-rails-0.2.11 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-0.2.10 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-0.2.9 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-0.2.8 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-0.2.7 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-0.2.5 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-0.2.4 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-0.2.3 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-0.2.2 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-0.2.0 lib/generators/connector/templates/complex_entity_example/lead.rb
maestrano-connector-rails-0.0.1 lib/generators/connector/templates/complex_entity_example/lead.rb