module Paf::Attribute::ClassMethods

Methods to be added to the including class

Public Instance Methods

attrs() click to toggle source
# File lib/paf/attribute.rb, line 11
def attrs
  organisation_attrs +
    premises_attrs +
    dependent_thoroughfare_attrs +
    thoroughfare_attrs +
    locality_attrs +
    post_attrs +
    other_attrs
end
dependent_thoroughfare_attrs() click to toggle source
# File lib/paf/attribute.rb, line 29
def dependent_thoroughfare_attrs
  %i[dependent_thoroughfare_name dependent_thoroughfare_descriptor]
end
locality_attrs() click to toggle source
# File lib/paf/attribute.rb, line 37
def locality_attrs
  %i[double_dependent_locality dependent_locality]
end
organisation_attrs() click to toggle source
# File lib/paf/attribute.rb, line 21
def organisation_attrs
  %i[organisation_name department_name]
end
other_attrs() click to toggle source
# File lib/paf/attribute.rb, line 45
def other_attrs
  %i[po_box_number udprn]
end
post_attrs() click to toggle source
# File lib/paf/attribute.rb, line 41
def post_attrs
  %i[post_town postcode]
end
premises_attrs() click to toggle source
# File lib/paf/attribute.rb, line 25
def premises_attrs
  %i[sub_building_name building_name building_number]
end
thoroughfare_attrs() click to toggle source
# File lib/paf/attribute.rb, line 33
def thoroughfare_attrs
  %i[thoroughfare_name thoroughfare_descriptor]
end