Class: XmlParser

Inherits:
Mechanize::File
  • Object
show all
Defined in:
lib/xml_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri = nil, response = nil, body = nil, code = nil) ⇒ XmlParser

Returns a new instance of XmlParser.



3
4
5
6
# File 'lib/xml_parser.rb', line 3

def initialize(uri = nil, response = nil, body = nil, code = nil)
  @xml = Nokogiri::XML(body)
  super uri, response, body, code
end

Instance Attribute Details

#xmlObject (readonly)

Returns the value of attribute xml.



2
3
4
# File 'lib/xml_parser.rb', line 2

def xml
  @xml
end