Class: LeanplumApi::Connection::DataExport

Inherits:
Production
  • Object
show all
Defined in:
lib/leanplum_api/connections/data_export.rb

Constant Summary

Constants inherited from Production

Production::LEANPLUM_API_PATH

Instance Method Summary collapse

Methods inherited from Production

#get, #multi

Constructor Details

#initialize(options = {}) ⇒ DataExport

Returns a new instance of DataExport.



5
6
7
8
# File 'lib/leanplum_api/connections/data_export.rb', line 5

def initialize(options = {})
  raise 'Data export key not configured' unless LeanplumApi.configuration.data_export_key
  super
end

Instance Method Details

#authentication_paramsObject

Data export API requests need to use the Data Export key



11
12
13
# File 'lib/leanplum_api/connections/data_export.rb', line 11

def authentication_params
  super.merge(clientKey: LeanplumApi.configuration.data_export_key)
end