Module: Parliament::Decorators::PostalAddress

Defined in:
lib/parliament/decorators/postal_address.rb

Overview

Decorator namespace for Grom::Node instances with type: id.ukpds.org/schema/PostalAddress

Instance Method Summary collapse

Instance Method Details

#full_addressString

Builds a full address using the lines of the address and the postcode.

Returns:

  • (String, String)

    the full address of the Grom::Node or an empty string.


8
9
10
# File 'lib/parliament/decorators/postal_address.rb', line 8

def full_address
  address_array.join(', ')
end