Class: Gnip::PowerTrackClient

Inherits:
Object
  • Object
show all
Defined in:
lib/gnip/power_track_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ PowerTrackClient

Returns a new instance of PowerTrackClient.



10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/gnip/power_track_client.rb', line 10

def initialize(options = {})
  @account         = options[:account]
  @publisher       = options[:publisher]||"twitter"
  @label           = options[:label]||"dev"
  @username        = options[:username]
  @password        = options[:password]
  @backfill_client = options[:backfill_client]||nil        
  @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

Instance Attribute Details

#accountObject

Returns the value of attribute account.



4
5
6
# File 'lib/gnip/power_track_client.rb', line 4

def 
  @account
end

#backfill_clientObject

Returns the value of attribute backfill_client.



4
5
6
# File 'lib/gnip/power_track_client.rb', line 4

def backfill_client
  @backfill_client
end

#full_archiveObject (readonly)

Returns the value of attribute full_archive.



8
9
10
# File 'lib/gnip/power_track_client.rb', line 8

def full_archive
  @full_archive
end

#labelObject

Returns the value of attribute label.



4
5
6
# File 'lib/gnip/power_track_client.rb', line 4

def label
  @label
end

#passwordObject

Returns the value of attribute password.



4
5
6
# File 'lib/gnip/power_track_client.rb', line 4

def password
  @password
end

#publisherObject

Returns the value of attribute publisher.



4
5
6
# File 'lib/gnip/power_track_client.rb', line 4

def publisher
  @publisher
end

#replayObject (readonly)

Returns the value of attribute replay.



8
9
10
# File 'lib/gnip/power_track_client.rb', line 8

def replay
  @replay
end

#replay_rulesObject (readonly)

Returns the value of attribute replay_rules.



8
9
10
# File 'lib/gnip/power_track_client.rb', line 8

def replay_rules
  @replay_rules
end

#rulesObject (readonly)

Returns the value of attribute rules.



8
9
10
# File 'lib/gnip/power_track_client.rb', line 8

def rules
  @rules
end

#streamObject (readonly)

Returns the value of attribute stream.



8
9
10
# File 'lib/gnip/power_track_client.rb', line 8

def stream
  @stream
end

#usernameObject

Returns the value of attribute username.



4
5
6
# File 'lib/gnip/power_track_client.rb', line 4

def username
  @username
end