class FiasReader::Table
Инерфейс для работы XML с базой ФИАС
Constants
- LOGICS
Public Class Methods
new(reader)
click to toggle source
# File lib/fias_reader/table.rb, line 9 def initialize(reader) @reader = reader end
Public Instance Methods
file()
click to toggle source
# File lib/fias_reader/table.rb, line 17 def file File.new(file_path, 'r') end
file_path()
click to toggle source
# File lib/fias_reader/table.rb, line 21 def file_path Dir[ "#{@reader.path}/#{self.class::File}_*.XML", "#{@reader.path}/#{self.class::File}_*.xml" ].first end
query()
click to toggle source
# File lib/fias_reader/table.rb, line 13 def query FiasReader::Scope.new(self) end