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.



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

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

Instance Attribute Details

#accountObject

Returns the value of attribute account.



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

def 
  @account
end

#backfill_clientObject

Returns the value of attribute backfill_client.



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

def backfill_client
  @backfill_client
end

#full_archiveObject (readonly)

Returns the value of attribute full_archive.



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

def full_archive
  @full_archive
end

#labelObject

Returns the value of attribute label.



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

def label
  @label
end

#passwordObject

Returns the value of attribute password.



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

def password
  @password
end

#power_track_versionObject (readonly)

Returns the value of attribute power_track_version.



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

def power_track_version
  @power_track_version
end

#publisherObject

Returns the value of attribute publisher.



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

def publisher
  @publisher
end

#replayObject (readonly)

Returns the value of attribute replay.



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

def replay
  @replay
end

#replay_labelObject

Returns the value of attribute replay_label.



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

def replay_label
  @replay_label
end

#replay_rulesObject (readonly)

Returns the value of attribute replay_rules.



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

def replay_rules
  @replay_rules
end

#rulesObject (readonly)

Returns the value of attribute rules.



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

def rules
  @rules
end

#streamObject (readonly)

Returns the value of attribute stream.



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

def stream
  @stream
end

#usernameObject

Returns the value of attribute username.



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

def username
  @username
end