Module: Hoptoad

Defined in:
lib/hoptoad.rb,
lib/hoptoad/v2.rb

Defined Under Namespace

Modules: V2 Classes: ApiVersionError

Class Method Summary collapse

Class Method Details

.parse_xml!(xml) ⇒ Object


10
11
12
13
14
# File 'lib/hoptoad.rb', line 10

def self.parse_xml!(xml)
  parsed = ActiveSupport::XmlMini.backend.parse(xml)['notice'] || raise(ApiVersionError)
  processor = get_version_processor(parsed['version'])
  processor.process_notice(parsed)
end