Class: Gnip::PowerTrackClient
- Inherits:
-
Object
- Object
- Gnip::PowerTrackClient
- Defined in:
- lib/gnip/power_track_client.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#backfill_client ⇒ Object
Returns the value of attribute backfill_client.
-
#full_archive ⇒ Object
readonly
Returns the value of attribute full_archive.
-
#label ⇒ Object
Returns the value of attribute label.
-
#password ⇒ Object
Returns the value of attribute password.
-
#power_track_version ⇒ Object
readonly
Returns the value of attribute power_track_version.
-
#publisher ⇒ Object
Returns the value of attribute publisher.
-
#replay ⇒ Object
readonly
Returns the value of attribute replay.
-
#replay_label ⇒ Object
Returns the value of attribute replay_label.
-
#replay_rules ⇒ Object
readonly
Returns the value of attribute replay_rules.
-
#rules ⇒ Object
readonly
Returns the value of attribute rules.
-
#stream ⇒ Object
readonly
Returns the value of attribute stream.
-
#thirty_day ⇒ Object
readonly
Returns the value of attribute thirty_day.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ PowerTrackClient
constructor
A new instance of PowerTrackClient.
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 26 |
# File 'lib/gnip/power_track_client.rb', line 11 def initialize( = {}) @account = [:account] @publisher = [:publisher] || 'twitter' @label = [:label] || 'dev' @replay_label = [:replay_label] || @label @username = [:username] @password = [:password] @backfill_client = [:backfill_client] || nil @power_track_version = [: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) @thirty_day = Gnip::GnipFullArchive::ThirtyDay.new(self) @stream = Gnip::GnipStream::Stream.new(self) @replay = Gnip::GnipStream::Replay.new(self) end |
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
5 6 7 |
# File 'lib/gnip/power_track_client.rb', line 5 def account @account end |
#backfill_client ⇒ Object
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_archive ⇒ Object (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 |
#label ⇒ Object
Returns the value of attribute label.
5 6 7 |
# File 'lib/gnip/power_track_client.rb', line 5 def label @label end |
#password ⇒ Object
Returns the value of attribute password.
5 6 7 |
# File 'lib/gnip/power_track_client.rb', line 5 def password @password end |
#power_track_version ⇒ Object (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 |
#publisher ⇒ Object
Returns the value of attribute publisher.
5 6 7 |
# File 'lib/gnip/power_track_client.rb', line 5 def publisher @publisher end |
#replay ⇒ Object (readonly)
Returns the value of attribute replay.
9 10 11 |
# File 'lib/gnip/power_track_client.rb', line 9 def replay @replay end |
#replay_label ⇒ Object
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_rules ⇒ Object (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 |
#rules ⇒ Object (readonly)
Returns the value of attribute rules.
9 10 11 |
# File 'lib/gnip/power_track_client.rb', line 9 def rules @rules end |
#stream ⇒ Object (readonly)
Returns the value of attribute stream.
9 10 11 |
# File 'lib/gnip/power_track_client.rb', line 9 def stream @stream end |
#thirty_day ⇒ Object (readonly)
Returns the value of attribute thirty_day.
9 10 11 |
# File 'lib/gnip/power_track_client.rb', line 9 def thirty_day @thirty_day end |
#username ⇒ Object
Returns the value of attribute username.
5 6 7 |
# File 'lib/gnip/power_track_client.rb', line 5 def username @username end |