Class: Onebusaway::Base
- Inherits:
-
Object
- Object
- Onebusaway::Base
- Defined in:
- lib/onebusaway.rb
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.from_xml(xml_or_data) ⇒ Object
101 102 103 104 |
# File 'lib/onebusaway.rb', line 101 def self.from_xml(xml_or_data) xml_or_data = REXML::Document.new(xml_or_data).root if xml_or_data.is_a?(String) self.parse(xml_or_data) end |
.parse(data) ⇒ Object
106 107 108 |
# File 'lib/onebusaway.rb', line 106 def self.parse(data) raise "not implemented" end |