Method: Gnip::GnipData#initialize

Defined in:
lib/gnip_api/gnip/gnip_data.rb

#initialize(params = {}) ⇒ GnipData

Returns a new instance of GnipData.


5
6
7
8
9
# File 'lib/gnip_api/gnip/gnip_data.rb', line 5

def initialize params={}
  @matching_rules = params['matching_rules'].map{|r| GnipApi::Apis::PowerTrack::Rule.new(r)} if params['matching_rules']
  @urls = (params['urls'] ? params['urls'].map{|u| Gnip::Url.new(u)} : [])
  @language = params['language']
end