Sha256: b9505ea1d7b0e290a85541a76e44b2b753f326d107d4278eb2b9b0600a7cfe2a

Contents?: true

Size: 471 Bytes

Versions: 2

Compression:

Stored size: 471 Bytes

Contents

module DataSift
  class HistoricsPreview < DataSift::ApiResource

    def create(hash, parameters, start, end_time = nil)
      params = {
          :hash       => hash,
          :parameters => parameters,
          :start      => start
      }
      params.merge!(end_time) if end_time != nil

      DataSift.request(:POST, 'preview/create', @config, params)
    end

    def get(id)
      DataSift.request(:POST, 'preview/get', @config, {:id => id})
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
datasift-3.0.0.beta2 lib/historics_preview.rb
datasift-3.0.0.beta lib/historics_preview.rb