sul-dlss/argo

View on GitHub
app/models/view_switcher.rb

Summary

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

##
# Holds structure needed to switch views between controllers
class ViewSwitcher
  attr_reader :name, :path

  ##
  # @param [Symbol] name name of "view" used for switching between controllers
  # @param [Symbol] path named route path helper method
  def initialize(name, path)
    @name = name
    @path = path
  end
end