monfresh/ohana-sms

View on GitHub
app/presenters/organization_presenter.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class OrganizationPresenter
  def initialize(location)
    @location = location
  end

  def name
    org_name = location.organization.name
    " (#{org_name})" if location.name != org_name
  end

  private

  attr_reader :location
end