Sha256: 81b560467198f3103f2d3fdcea05661c8ba73af462de7cdb016031aff4b95339

Contents?: true

Size: 353 Bytes

Versions: 106

Compression:

Stored size: 353 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware/directory"

module Renalware
  module Directory
    class PersonAutoCompletePresenter < DumbDelegator
      def name_and_address
        [family_name, given_name, address].compact.join(", ")
      end

      def to_hash
        { id: id, label: name_and_address }
      end
    end
  end
end

Version data entries

106 entries across 106 versions & 1 rubygems

Version Path
renalware-core-2.0.113 app/presenters/renalware/directory/person_auto_complete_presenter.rb
renalware-core-2.0.112 app/presenters/renalware/directory/person_auto_complete_presenter.rb
renalware-core-2.0.111 app/presenters/renalware/directory/person_auto_complete_presenter.rb
renalware-core-2.0.110 app/presenters/renalware/directory/person_auto_complete_presenter.rb
renalware-core-2.0.109 app/presenters/renalware/directory/person_auto_complete_presenter.rb
renalware-core-2.0.108 app/presenters/renalware/directory/person_auto_complete_presenter.rb
renalware-core-2.0.106 app/presenters/renalware/directory/person_auto_complete_presenter.rb
renalware-core-2.0.105 app/presenters/renalware/directory/person_auto_complete_presenter.rb
renalware-core-2.0.104 app/presenters/renalware/directory/person_auto_complete_presenter.rb
renalware-core-2.0.103 app/presenters/renalware/directory/person_auto_complete_presenter.rb
renalware-core-2.0.102 app/presenters/renalware/directory/person_auto_complete_presenter.rb
renalware-core-2.0.101 app/presenters/renalware/directory/person_auto_complete_presenter.rb
renalware-core-2.0.100 app/presenters/renalware/directory/person_auto_complete_presenter.rb
renalware-core-2.0.99 app/presenters/renalware/directory/person_auto_complete_presenter.rb
renalware-core-2.0.98 app/presenters/renalware/directory/person_auto_complete_presenter.rb
renalware-core-2.0.97 app/presenters/renalware/directory/person_auto_complete_presenter.rb
renalware-core-2.0.96 app/presenters/renalware/directory/person_auto_complete_presenter.rb
renalware-core-2.0.95 app/presenters/renalware/directory/person_auto_complete_presenter.rb
renalware-core-2.0.94 app/presenters/renalware/directory/person_auto_complete_presenter.rb
renalware-core-2.0.93 app/presenters/renalware/directory/person_auto_complete_presenter.rb