sul-dlss/argo

View on GitHub
app/components/show/item/structure/file_component.rb

Summary

Maintainability
A
0 mins
Test Coverage
B
87%
# frozen_string_literal: true

module Show
  module Item
    module Structure
      class FileComponent < ViewComponent::Base
        def initialize(file:)
          @file = file
        end

        delegate :name, :size, :index, to: :file

        attr_reader :file
      end
    end
  end
end