Class: Remi::Encoder::Salesforce

Inherits:
Remi::Encoder show all
Defined in:
lib/remi/data_subjects/salesforce.rb

Overview

Salesforce encoder

Instance Attribute Summary

Attributes inherited from Remi::Encoder

#context, #field_symbolizer, #fields, #logger

Instance Method Summary collapse

Methods inherited from Remi::Encoder

#initialize

Constructor Details

This class inherits a constructor from Remi::Encoder

Instance Method Details

#encode(dataframe) ⇒ Object

Converts the dataframe to an array of hashes, which can be used by the salesforce bulk api.

Parameters:

Returns:

  • (Object)

    The encoded data to be loaded into the target



136
137
138
# File 'lib/remi/data_subjects/salesforce.rb', line 136

def encode(dataframe)
  dataframe.to_a[0]
end