class ElsevierApi::XMLResponse::XMLResponseGeneric
Attributes
xml[R]
Public Class Methods
new(xml)
click to toggle source
# File lib/elsevier_api/xml_response.rb, line 40 def initialize(xml) @xml=xml process() end
Public Instance Methods
process()
click to toggle source
Just put anything you want here
# File lib/elsevier_api/xml_response.rb, line 45 def process end
process_path(x, path)
click to toggle source
# File lib/elsevier_api/xml_response.rb, line 47 def process_path(x, path) node=x.at_xpath(path) (node.nil?) ? nil : node.text end