Class: Sec::Firms::XMLParser
- Inherits:
-
Object
- Object
- Sec::Firms::XMLParser
- Defined in:
- lib/sec/firms/xml_parser.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#doc ⇒ Object
Returns the value of attribute doc.
Instance Method Summary collapse
-
#initialize(xml_str) ⇒ XMLParser
constructor
A new instance of XMLParser.
Constructor Details
#initialize(xml_str) ⇒ XMLParser
Returns a new instance of XMLParser.
8 9 10 |
# File 'lib/sec/firms/xml_parser.rb', line 8 def initialize(xml_str) @doc = Nokogiri::XML(xml_str, nil) end |
Instance Attribute Details
#doc ⇒ Object
Returns the value of attribute doc.
6 7 8 |
# File 'lib/sec/firms/xml_parser.rb', line 6 def doc @doc end |