class TINCheck::XML::Ox::Parser

Private Instance Methods

root(xml) click to toggle source
# File lib/tincheck/xml/ox.rb, line 14
def root(xml)
  ::Ox.load(xml, symbolize_keys: false)
end
value_with!(node) click to toggle source
# File lib/tincheck/xml/ox.rb, line 18
def value_with!(node)
  return if node.nodes.empty?
  node.text || hash_with(*node.nodes)
end