Module: Webhookdb::Xml::Atom

Defined in:
lib/webhookdb/xml.rb

Defined Under Namespace

Classes: Parser

Class Method Summary collapse

Class Method Details

.parse(thing) ⇒ Object



5
6
7
# File 'lib/webhookdb/xml.rb', line 5

def self.parse(thing)
  Parser.new(thing).to_hash
end

.parse_entry(thing) ⇒ Object



9
10
11
12
# File 'lib/webhookdb/xml.rb', line 9

def self.parse_entry(thing)
  p = Parser.new(thing)
  p.parse_entry(p.doc.root)
end