Class: GeoRuby::GeorssParser

Inherits:
Object
  • Object
show all
Defined in:
lib/geo_ruby/georss.rb

Overview

Parses GeoRSS strings You can also use directly the static method Geometry.from_georss

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#geometryObject (readonly)

Returns the value of attribute geometry.



24
25
26
# File 'lib/geo_ruby/georss.rb', line 24

def geometry
  @geometry
end

#georss_tagsObject (readonly)

Returns the value of attribute georss_tags.



24
25
26
# File 'lib/geo_ruby/georss.rb', line 24

def georss_tags
  @georss_tags
end

Instance Method Details

#parse(georss, with_tags = false) ⇒ Object

Parses the georss geometry passed as argument and notifies the factory of events The parser assumes



28
29
30
31
32
# File 'lib/geo_ruby/georss.rb', line 28

def parse(georss,with_tags = false)
  @geometry = nil
  @georss_tags = GeorssTags.new
  parse_geometry(georss,with_tags)
end