Class: Sec::Firms::XMLParser

Inherits:
Object
  • Object
show all
Defined in:
lib/sec/firms/xml_parser.rb

Direct Known Subclasses

FirmEntryParser, FirmParser, Lists

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#docObject

Returns the value of attribute doc.



6
7
8
# File 'lib/sec/firms/xml_parser.rb', line 6

def doc
  @doc
end