psu-libraries/psulib_blacklight

View on GitHub
app/components/browse/call_number_display.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

module Browse
  class CallNumberDisplay < ViewComponent::Base
    attr_reader :call_number, :list, :id

    def initialize(call_number:, list:, id:)
      @call_number = call_number
      @list = list
      @id = id
    end

    def render?
      call_number.present? && id.present?
    end
  end
end