Class: Seiun::XMLParsers::ResultXML

Inherits:
Base
  • Object
show all
Defined in:
lib/seiun/xml_parsers/result_xml.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize, #to_hash

Constructor Details

This class inherits a constructor from Seiun::XMLParsers::Base

Class Method Details

.each(xml_str, find_tag: "result", &block) ⇒ Object



5
6
7
# File 'lib/seiun/xml_parsers/result_xml.rb', line 5

def each(xml_str, find_tag: "result", &block)
  parse(xml_str, find_tag, block)
end

Instance Method Details

#result_idObject



10
11
12
13
# File 'lib/seiun/xml_parsers/result_xml.rb', line 10

def result_id
  return unless result.is_a?(String)
  result
end