Class: LeanplumApi::Connection::ContentReadOnly

Inherits:
Production
  • Object
show all
Defined in:
lib/leanplum_api/connections/content_read_only.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 = {}) ⇒ ContentReadOnly

Returns a new instance of ContentReadOnly.



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

def initialize(options = {})
  raise 'Content read only key not configured!' unless LeanplumApi.configuration.content_read_only_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/content_read_only.rb', line 11

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