Module: Kamome::Transformations::Extractor
- Included in:
- JigyoshoCsv
- Defined in:
- lib/kamome/transformations/extractor.rb
Constant Summary collapse
- POST_OFFICE_REG =
/((.+私書箱第.+号))$/.freeze
Class Method Summary collapse
Class Method Details
.extract_post_office_box(value) ⇒ Object
13 14 15 |
# File 'lib/kamome/transformations/extractor.rb', line 13 def extract_post_office_box(value) value[POST_OFFICE_REG, 1] || '' end |
.extract_street(value) ⇒ Object
9 10 11 |
# File 'lib/kamome/transformations/extractor.rb', line 9 def extract_street(value) value.sub(POST_OFFICE_REG, '') end |