class BrregGrunndata::Types::Address

Public Instance Methods

street(separator = ', ') click to toggle source

Returns this address' street

Brreg returns street as three parts. You find them in street_parts. If you just one a string representing the street this is your method. It joins the parts by given separator defaulting to ', '

@return String

# File lib/brreg_grunndata/types/address.rb, line 23
def street(separator = ', ')
  street_parts.join separator
end
to_h()
Alias for: to_hash
to_hash() click to toggle source
Calls superclass method
# File lib/brreg_grunndata/types/address.rb, line 27
def to_hash
  super.tap do |hash|
    hash[:street] = street
  end
end
Also aliased as: to_h