Class: GeoSpider::Extractors::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/geo-spider/extractors/base.rb

Direct Known Subclasses

Master, Microformat, Postcode

Instance Method Summary collapse

Constructor Details

#initialize(element) ⇒ Base

Returns a new instance of Base.

Raises:



7
8
9
10
# File 'lib/geo-spider/extractors/base.rb', line 7

def initialize(element)
  raise InvalidElement if element.class != Hpricot::Elem || element.nil?
  @element = element
end