Class: Hyrax::SelectCollectionTypePresenter
- Inherits:
-
Object
- Object
- Hyrax::SelectCollectionTypePresenter
- Defined in:
- app/presenters/hyrax/select_collection_type_presenter.rb
Instance Attribute Summary collapse
-
#collection_type ⇒ Object
readonly
Returns the value of attribute collection_type.
Instance Method Summary collapse
- #admin_set? ⇒ Boolean
- #description ⇒ Object
- #id ⇒ Object
-
#initialize(collection_type) ⇒ SelectCollectionTypePresenter
constructor
A new instance of SelectCollectionTypePresenter.
- #title ⇒ Object
Constructor Details
#initialize(collection_type) ⇒ SelectCollectionTypePresenter
Returns a new instance of SelectCollectionTypePresenter.
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_type ⇒ Object (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
23 |
# File 'app/presenters/hyrax/select_collection_type_presenter.rb', line 23 delegate :title, :description, :admin_set?, :id, to: :collection_type |
#description ⇒ Object
23 |
# File 'app/presenters/hyrax/select_collection_type_presenter.rb', line 23 delegate :title, :description, :admin_set?, :id, to: :collection_type |
#id ⇒ Object
23 |
# File 'app/presenters/hyrax/select_collection_type_presenter.rb', line 23 delegate :title, :description, :admin_set?, :id, to: :collection_type |
#title ⇒ Object
23 |
# File 'app/presenters/hyrax/select_collection_type_presenter.rb', line 23 delegate :title, :description, :admin_set?, :id, to: :collection_type |