Method: GnipApi::Apis::PowerTrack::Rules#initialize

Defined in:
lib/gnip_api/apis/power_track/rules.rb

#initialize(params = {}) ⇒ Rules

In order to do any operation, you need to specify:

  • label: the label of your stream

  • source: which data source to use (I think only twitter is available)


14
15
16
17
18
# File 'lib/gnip_api/apis/power_track/rules.rb', line 14

def initialize params={}
  @adapter = GnipApi::Adapter.new
  @label = params[:label] || GnipApi.config.label
  @source = params[:source] || GnipApi.config.source
end