Module: Parliament::Grom::Decorator::PostalAddress

Defined in:
lib/parliament/grom/decorator/postal_address.rb

Overview

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

Since:

  • 0.1.0

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.

Since:

  • 0.1.0



9
10
11
# File 'lib/parliament/grom/decorator/postal_address.rb', line 9

def full_address
  address_array.join(', ')
end