Class: FiasReader::Reader
- Inherits:
-
Object
- Object
- FiasReader::Reader
- Defined in:
- lib/fias_reader/reader.rb,
lib/fias_reader/reader/row.rb
Overview
Инерфейс для работы XML с базой ФИАС
Defined Under Namespace
Classes: Row
Constant Summary collapse
- XML_DATE_SEPARATOR =
Итерируем по всем активным записям домов, принимает блок в качестве аргумента В вызываемы блок передается объект типа FiasReader::Reader::Row.
'-'.freeze
- EMPTY_STRING =
'0'.freeze
- TODAY =
Date.today.strftime('%Y0%m0%d').to_i
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(path) ⇒ Reader
constructor
A new instance of Reader.
Constructor Details
#initialize(path) ⇒ Reader
Returns a new instance of Reader.
5 6 7 |
# File 'lib/fias_reader/reader.rb', line 5 def initialize(path) @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
4 5 6 |
# File 'lib/fias_reader/reader.rb', line 4 def path @path end |