Sha256: 7fe9552f842b85d525960ab303c97f266bd5a0786fa83e78b6647f4dd8d7ffeb

Contents?: true

Size: 501 Bytes

Versions: 12

Compression:

Stored size: 501 Bytes

Contents

module DataSift
  ##
  # Use DataSift's Open Data Processing (ODP) to upload your own data to
  #   DataSift for processing
  class Odp < DataSift::ApiResource
    def ingest(source_id, data)
      fail ArgumentError, 'source_id is required' if source_id.nil?
      fail ArgumentError, 'data payload is required' if data.nil?

      DataSift.request(
        :POST,
        source_id,
        @config.merge(api_host: @config[:ingestion_host], api_version: nil),
        data
      )
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
datasift-3.10.0 lib/odp.rb
datasift-3.9.0 lib/odp.rb
datasift-3.8.0 lib/odp.rb
datasift-3.7.2 lib/odp.rb
datasift-3.5.2 lib/odp.rb
datasift-3.5.1 lib/odp.rb
datasift-3.7.1 lib/odp.rb
datasift-3.7.0 lib/odp.rb
datasift-3.6.2 lib/odp.rb
datasift-3.6.1 lib/odp.rb
datasift-3.6.0 lib/odp.rb
datasift-3.5.0 lib/odp.rb