Sha256: 121adad943d68099a12e9e6cf02e2a9ead1f11ff012fdbea43e5d78740f7c974

Contents?: true

Size: 422 Bytes

Versions: 3

Compression:

Stored size: 422 Bytes

Contents

class AppnexusApi::LogLevelDataService < AppnexusApi::Service
  def initialize(connection, options = {})
    @read_only = true
    @siphon_name = options[:siphon_name]

    super(connection)
  end

  def since(time = nil)
    params = {}
    params[:siphon_name] = @siphon_name if @siphon_name
    params[:updated_since] = time.strftime('%Y_%m_%d_%H') if time

    get(params)
  end

  def uri_name
    'siphon'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
appnexusapi-0.0.8 lib/appnexusapi/log_level_data_service.rb
appnexusapi-0.0.7 lib/appnexusapi/log_level_data_service.rb
appnexusapi-0.0.6 lib/appnexusapi/log_level_data_service.rb