Sha256: 9f83b43b0d5ad7a6ee31d372de458d8d550bf05ec41077c0b8bce3809c6a290a

Contents?: true

Size: 669 Bytes

Versions: 24

Compression:

Stored size: 669 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  class SelectCollectionTypePresenter
    ##
    # @!attribute [r] collection_type
    #   @return [CollectionType]
    attr_reader :collection_type

    ##
    # @param [CollectionType] collection_type a Hyrax::CollectionType
    def initialize(collection_type)
      @collection_type = collection_type
    end
    ##
    # @!method admin_set?
    #   @return [Boolean]
    # @!method description
    #   @see CollectionType#description
    # @!method id
    #   @see CollectionType#id
    # @!method title
    #   @see CollectionType#title
    delegate :title, :description, :admin_set?, :id, to: :collection_type
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
hyrax-5.0.1 app/presenters/hyrax/select_collection_type_presenter.rb
hyrax-5.0.0 app/presenters/hyrax/select_collection_type_presenter.rb
hyrax-5.0.0.rc3 app/presenters/hyrax/select_collection_type_presenter.rb
hyrax-5.0.0.rc2 app/presenters/hyrax/select_collection_type_presenter.rb
hyrax-5.0.0.rc1 app/presenters/hyrax/select_collection_type_presenter.rb
hyrax-3.6.0 app/presenters/hyrax/select_collection_type_presenter.rb
hyrax-4.0.0 app/presenters/hyrax/select_collection_type_presenter.rb
hyrax-4.0.0.rc3 app/presenters/hyrax/select_collection_type_presenter.rb
hyrax-4.0.0.rc2 app/presenters/hyrax/select_collection_type_presenter.rb
hyrax-4.0.0.rc1 app/presenters/hyrax/select_collection_type_presenter.rb
hyrax-3.5.0 app/presenters/hyrax/select_collection_type_presenter.rb
hyrax-4.0.0.beta2 app/presenters/hyrax/select_collection_type_presenter.rb
hyrax-3.4.2 app/presenters/hyrax/select_collection_type_presenter.rb
hyrax-4.0.0.beta1 app/presenters/hyrax/select_collection_type_presenter.rb
hyrax-3.4.1 app/presenters/hyrax/select_collection_type_presenter.rb
hyrax-3.4.0 app/presenters/hyrax/select_collection_type_presenter.rb
hyrax-3.3.0 app/presenters/hyrax/select_collection_type_presenter.rb
hyrax-3.2.0 app/presenters/hyrax/select_collection_type_presenter.rb
hyrax-3.1.0 app/presenters/hyrax/select_collection_type_presenter.rb
hyrax-3.0.2 app/presenters/hyrax/select_collection_type_presenter.rb