Class: Lcms::Engine::ExploreCurriculumInteractor
- Inherits:
-
BaseInteractor
- Object
- BaseInteractor
- Lcms::Engine::ExploreCurriculumInteractor
- Defined in:
- app/interactors/lcms/engine/explore_curriculum_interactor.rb
Instance Attribute Summary collapse
-
#props ⇒ Object
readonly
Returns the value of attribute props.
Attributes inherited from BaseInteractor
Instance Method Summary collapse
Methods inherited from BaseInteractor
Constructor Details
This class inherits a constructor from Lcms::Engine::BaseInteractor
Instance Attribute Details
#props ⇒ Object (readonly)
Returns the value of attribute props.
6 7 8 |
# File 'app/interactors/lcms/engine/explore_curriculum_interactor.rb', line 6 def props @props end |
Instance Method Details
#index_props ⇒ Object
10 11 12 |
# File 'app/interactors/lcms/engine/explore_curriculum_interactor.rb', line 10 def index_props slug_param ? : grades_props end |
#run ⇒ Object
8 |
# File 'app/interactors/lcms/engine/explore_curriculum_interactor.rb', line 8 def run; end |
#show_props ⇒ Object
14 15 16 17 |
# File 'app/interactors/lcms/engine/explore_curriculum_interactor.rb', line 14 def show_props resource = Resource.tree.find(params[:id]) CurriculumResourceSerializer.new(resource, depth: 1).as_json end |