Class DataHarvester::Main
In: scripts/harvester-main.rb
Parent: Object

Main method for the DataHarvester module. Takes an Ad object and applies the rules from its config to parse the ad and extract any possible metadata.

Methods

new   parse  

Public Class methods

Loads the parsing rules from the specified config file.

Public Instance methods

Applies all rules from this class’s configuration to the specified ad. If a String is passed in instead of an Ad, a new Ad object will be created. Either way, an Ad object is returned.

[Validate]