Submit social housing lettings and sales data (CORE)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

41 lines
582 B

require "net/http"
class AddressDataPresenter
attr_reader :data
def initialize(data)
@data = data
end
def uprn
data["UPRN"]
end
def address_line1
[data["BUILDING_NUMBER"], data["BUILDING_NAME"], data["THOROUGHFARE_NAME"]].compact.join(", ")
end
def address_line2
data["DEPENDENT_LOCALITY"]
end
def town_or_city
data["POST_TOWN"]
end
def postcode
data["POSTCODE"]
end
def address
data["ADDRESS"]
end
# def match
# data["MATCH"]
# end
#
# def match_description
# data["MATCH_DESCRIPTION"]
# end
end