class Datapimp::Sources::Keen
Attributes
options[R]
Public Class Methods
new(args, options)
click to toggle source
# File lib/datapimp/sources/keen.rb, line 7 def initialize(args, options) @collection = args.first @options = options.to_mash end
Public Instance Methods
extraction(event_collection)
click to toggle source
# File lib/datapimp/sources/keen.rb, line 16 def extraction(event_collection) jsonify(client.extraction(event_collection)) end
to_s()
click to toggle source
# File lib/datapimp/sources/keen.rb, line 12 def to_s extraction(@collection) end
Private Instance Methods
client()
click to toggle source
# File lib/datapimp/sources/keen.rb, line 22 def client @_client ||= ::Keen::Client.new( project_id: Datapimp.config.keen_project_id, read_key: Datapimp.config.keen_read_key ) end