Class: Lcms::Engine::EnhanceInstructionInteractor

Inherits:
BaseInteractor show all
Defined in:
app/interactors/lcms/engine/enhance_instruction_interactor.rb

Constant Summary collapse

TAB_INDEX =
%i(instructions videos generic).freeze

Instance Attribute Summary collapse

Attributes inherited from BaseInteractor

#error

Instance Method Summary collapse

Methods inherited from BaseInteractor

call, #initialize, #success?

Constructor Details

This class inherits a constructor from Lcms::Engine::BaseInteractor

Instance Attribute Details

#propsObject (readonly)

Returns the value of attribute props.



8
9
10
# File 'app/interactors/lcms/engine/enhance_instruction_interactor.rb', line 8

def props
  @props
end

Instance Method Details

#runObject



10
11
12
13
14
# File 'app/interactors/lcms/engine/enhance_instruction_interactor.rb', line 10

def run
  @props = pagination.serialize(data, serializer)
  @props.merge!(filterbar.props)
  @props.merge!(tab: active_tab)
end