Class: Perseus::NetworkIndexXML

Inherits:
IndexXML show all
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

#to_h, #to_json, #to_s

Instance Method Summary collapse

Methods inherited from IndexXML

#by_edition, #by_groupname, #generate_json_indeces, #generate_structure_by_edition, #generate_structure_by_group

Constructor Details

#initializeNetworkIndexXML

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

#downloadObject



11
12
13
# File 'lib/perseus/network_index_xml.rb', line 11

def download
  File.write(CTS_XML_FILE, to_s)
end