Class: Perseus::NetworkIndexXML
- Inherits:
-
IndexXML
- Object
- CTSElement
- IndexXML
- Perseus::NetworkIndexXML
- Defined in:
- lib/perseus/network_index_xml.rb
Instance Attribute Summary
Attributes inherited from IndexXML
#corpus_by_edition, #corpus_by_groupname
Attributes inherited from CTSElement
Instance Method Summary collapse
- #download ⇒ Object
-
#initialize ⇒ NetworkIndexXML
constructor
Models the whole perseus text index.
Methods inherited from IndexXML
#by_edition, #by_groupname, #generate_json_indeces, #generate_structure_by_edition, #generate_structure_by_group
Constructor Details
#initialize ⇒ NetworkIndexXML
Models the whole perseus text index
5 6 7 8 9 |
# File 'lib/perseus/network_index_xml.rb', line 5 def initialize puts "Reading from the network" @urn = "http://www.perseus.tufts.edu/hopper/CTS?request=GetCapabilities" download end |
Instance Method Details
#download ⇒ Object
11 12 13 |
# File 'lib/perseus/network_index_xml.rb', line 11 def download File.write(CTS_XML_FILE, to_s) end |