Sha256: 3138b273e4d0a8c0ff7c55b7c8192c977f36baae77290b0e27d545084f7876f6

Contents?: true

Size: 1.11 KB

Versions: 1

Compression:

Stored size: 1.11 KB

Contents

# frozen_string_literal: true

module Gnip
  class PowerTrackClient
    attr_accessor :publisher, :label, :account,
                  :username, :password,
                  :backfill_client, :replay_label

    attr_reader :rules, :replay_rules, :full_archive, :stream, :replay, :power_track_version

    def initialize(options = {})
      @account             = options[:account]
      @publisher           = options[:publisher] || 'twitter'
      @label               = options[:label] || 'dev'
      @replay_label        = options[:replay_label] || @label
      @username            = options[:username]
      @password            = options[:password]
      @backfill_client     = options[:backfill_client] || nil
      @power_track_version = options[:power_track_version] || '2.0'
      @rules               = Gnip::GnipRules::Rules.new(self)
      @replay_rules        = Gnip::GnipRules::Rules.new(self, true)
      @full_archive        = Gnip::GnipFullArchive::FullArchive.new(self)
      @stream              = Gnip::GnipStream::Stream.new(self)
      @replay              = Gnip::GnipStream::Replay.new(self)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gnip-client-0.2.10 lib/gnip/power_track_client.rb