Class: XmlParser
- Inherits:
-
Mechanize::File
- Object
- Mechanize::File
- XmlParser
- Defined in:
- lib/xml_parser.rb
Instance Attribute Summary collapse
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
-
#initialize(uri = nil, response = nil, body = nil, code = nil) ⇒ XmlParser
constructor
A new instance of XmlParser.
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
#xml ⇒ Object (readonly)
Returns the value of attribute xml.
2 3 4 |
# File 'lib/xml_parser.rb', line 2 def xml @xml end |