Module: Paf::Premises::Rule010

Defined in:
lib/paf/premises/rule010.rb

Overview

Processing for premises elements of a PAF entry under Rule 3

Instance Method Summary collapse

Instance Method Details

#premisesObject



5
6
7
8
9
10
11
12
13
14
# File 'lib/paf/premises/rule010.rb', line 5

def premises
  return [name_and_thoroughfare_or_locality] if building_name.exception?
  if building_name.split_exception?
    return [
      building_name.but_last_word,
      name_last_word_and_thoroughfare_or_locality
    ]
  end
  [building_name]
end