Class: OpenSRS::XmlProcessor
- Inherits:
-
Object
- Object
- OpenSRS::XmlProcessor
- Defined in:
- lib/opensrs/xml_processor.rb,
lib/opensrs/xml_processor/libxml.rb,
lib/opensrs/xml_processor/nokogiri.rb
Defined Under Namespace
Class Method Summary collapse
-
.parse(response) ⇒ Object
Parses the main data block from OpenSRS and discards the rest of the response.
Class Method Details
.parse(response) ⇒ Object
Parses the main data block from OpenSRS and discards the rest of the response.
6 7 8 9 10 11 12 |
# File 'lib/opensrs/xml_processor.rb', line 6 def self.parse(response) data_block = data_block_element(response) raise ArgumentError.new("No data found in document") if !data_block return decode_data(data_block) end |