Sha256: 528cd74411bbcb4cd5f0c1e6b294d26fb9fa7d8130979713a50e76a484b967e0

Contents?: true

Size: 480 Bytes

Versions: 11

Compression:

Stored size: 480 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware/address_presenter"

module Renalware
  class AddressPresenter::Block < AddressPresenter
    def to_html
      to_s.html_safe
    end

    private

    def join_arg
      "<br>"
    end

    def presentable_attrs
      [
        name,
        organisation_name,
        street_1,
        street_2,
        street_3,
        [town, county, postcode].reject(&:blank?).join(", "),
        country
      ]
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
renalware-core-2.0.11 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.9 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.8 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.7 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.5 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.4 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.3 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.2 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.1 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.0 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.0.pre.rc13 app/presenters/renalware/address_presenter/block.rb