Sha256: 92d76199da1466c63bbdb17410856b5a83e22251ce3a6021b0aea6ecc41caf75
Contents?: true
Size: 491 Bytes
Versions: 11
Compression:
Stored size: 491 Bytes
Contents
require 'active_force/sobject' class <%= class_name %> < ActiveForce::SObject MAPPINGS = { <% attributes.each do |attribute| -%> <%= attribute.local_name %>: '<%= attribute.remote_name %>', <% end -%> id: 'Id' } FIELDS = MAPPINGS.values RELATED_LIST_FIELDS = FIELDS self.mappings = MAPPINGS self.fields = FIELDS self.table_name = '<%= class_name %>' <% attributes.each do |attribute| -%> attribute :<%= attribute.local_name %> <% end -%> end
Version data entries
11 entries across 11 versions & 1 rubygems