Class: Perseus::FileIndexXML

Inherits:
IndexXML show all
Defined in:
lib/perseus/file_index_xml.rb

Instance Attribute Summary

Attributes inherited from IndexXML

#corpus_by_edition, #corpus_by_groupname

Attributes inherited from CTSElement

#to_h, #to_json

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

#initializeFileIndexXML

Returns a new instance of FileIndexXML.



4
5
6
7
# File 'lib/perseus/file_index_xml.rb', line 4

def initialize
  puts "Reading from locally saved xml"
  @urn = CTS_XML_FILE
end

Instance Method Details

#to_sObject



8
9
10
# File 'lib/perseus/file_index_xml.rb', line 8

def to_s
  @to_s ||= File.read(@urn)
end