Class: Hyrax::SelectCollectionTypePresenter

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/hyrax/select_collection_type_presenter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(collection_type) ⇒ SelectCollectionTypePresenter

Returns a new instance of SelectCollectionTypePresenter.

Parameters:



11
12
13
# File 'app/presenters/hyrax/select_collection_type_presenter.rb', line 11

def initialize(collection_type)
  @collection_type = collection_type
end

Instance Attribute Details

#collection_typeObject (readonly)

Returns the value of attribute collection_type.



7
8
9
# File 'app/presenters/hyrax/select_collection_type_presenter.rb', line 7

def collection_type
  @collection_type
end

Instance Method Details

#admin_set?Boolean

Returns:

  • (Boolean)


23
# File 'app/presenters/hyrax/select_collection_type_presenter.rb', line 23

delegate :title, :description, :admin_set?, :id, to: :collection_type

#descriptionObject

See Also:

  • CollectionType#description


23
# File 'app/presenters/hyrax/select_collection_type_presenter.rb', line 23

delegate :title, :description, :admin_set?, :id, to: :collection_type

#idObject

See Also:

  • CollectionType#id


23
# File 'app/presenters/hyrax/select_collection_type_presenter.rb', line 23

delegate :title, :description, :admin_set?, :id, to: :collection_type

#titleObject

See Also:

  • CollectionType#title


23
# File 'app/presenters/hyrax/select_collection_type_presenter.rb', line 23

delegate :title, :description, :admin_set?, :id, to: :collection_type