Class: Gnip::GnipFullArchive::ThirtyDay

Inherits:
FullArchive show all
Defined in:
lib/gnip/gnip-full-archive/thirty_day.rb

Instance Attribute Summary

Attributes inherited from FullArchive

#counts_url, #search_url

Instance Method Summary collapse

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.}/#{client.label}.json"
  @counts_url = "https://gnip-api.twitter.com/search/30day/accounts/#{client.}/#{client.label}/counts.json"
  @auth = { username: client.username, password: client.password }
end