Sha256: f1abf1fc88d809660ca508ea2062d75a1de8bcdd5885a1358e44c1dee41055f0

Contents?: true

Size: 449 Bytes

Versions: 19

Compression:

Stored size: 449 Bytes

Contents

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

19 entries across 19 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc11 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.0.pre.rc10 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.0.pre.rc9 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.0.pre.rc8 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.0.pre.rc7 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.0.pre.rc6 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.0.pre.rc5 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.0.pre.rc4 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.0.pre.rc3 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.0.pre.rc1 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.0.pre.beta12 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.0.pre.beta11 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.0.pre.beta10 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.0.pre.beta9 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.0.pre.beta8 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.0.pre.beta7 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.0.pre.beta6 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.0.pre.beta5 app/presenters/renalware/address_presenter/block.rb
renalware-core-2.0.0.pre.beta4 app/presenters/renalware/address_presenter/block.rb