Class: Billd::Parser
- Inherits:
-
Object
- Object
- Billd::Parser
- Defined in:
- lib/billd/parser.rb
Class Method Summary collapse
Class Method Details
.parse(uri) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/billd/parser.rb', line 7 def self.parse uri source = Kernel.open(uri).read xml = Nokogiri.parse source projects = xml.elements.first projects.elements.map { |e| Billd::Build.new(e.to_xml) } end |