class Tango::ETL::HandlerInterface

Handler interface

@author Mckomo

Attributes

url[R]

Public Class Methods

applicable?( url ) click to toggle source

Wether handler should be applied for given url

@param url [String] @return [Boolean]

# File lib/tango/etl/handler_interface.rb, line 42
def self.applicable?( url )
  raise NotImplementedError
end
new( url, document, cache = nil ) click to toggle source

Constructor of Tango's handler

@param [String] @param [Nokogiri::XML] @param [Tango::Resource::Cache] @return [Tango::ETL::HandlerInterface]

# File lib/tango/etl/handler_interface.rb, line 18
def initialize( url, document, cache = nil )
  @url = url
  @document = document
  @cache = cache      
end

Public Instance Methods

trigger() click to toggle source

Process document

@return [NilClass]

# File lib/tango/etl/handler_interface.rb, line 34
def trigger
  raise NotImplementedError 
end