Class: Gnip::GnipFullArchive::ThirtyDay
- Inherits:
-
FullArchive
- Object
- FullArchive
- Gnip::GnipFullArchive::ThirtyDay
- Defined in:
- lib/gnip/gnip-full-archive/thirty_day.rb
Instance Attribute Summary
Attributes inherited from FullArchive
Instance Method Summary collapse
-
#initialize(client) ⇒ ThirtyDay
constructor
A new instance of ThirtyDay.
Methods inherited from FullArchive
#search, #total, #total_by_time_period
Constructor Details
#initialize(client) ⇒ ThirtyDay
Returns a new instance of ThirtyDay.
6 7 8 9 10 |
# File 'lib/gnip/gnip-full-archive/thirty_day.rb', line 6 def initialize(client) @search_url = "https://gnip-api.twitter.com/search/30day/accounts/#{client.account}/#{client.label}.json" @counts_url = "https://gnip-api.twitter.com/search/30day/accounts/#{client.account}/#{client.label}/counts.json" @auth = { username: client.username, password: client.password } end |