Sha256: 2dad7f55692790e2b75704cf70a4d5e96616c83cdde640232814061a79908bb8

Contents?: true

Size: 705 Bytes

Versions: 4

Compression:

Stored size: 705 Bytes

Contents

module Plutonium
  module Interaction
    module Response
      # Represents a render response.
      #
      # This class is used to render views as a result of an interaction.
      class Render < Base
        # Initializes a new Render response.
        #
        # @param options [Hash] Options to pass to the render method.
        def initialize(options = {})
          super()
          @options = options
        end

        private

        # Executes the render response.
        #
        # @param controller [ActionController::Base] The controller instance.
        # @return [void]
        def execute(controller)
          controller.render @options
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plutonium-0.15.0 lib/plutonium/interaction/response/render.rb
plutonium-0.15.0.pre.rc3 lib/plutonium/interaction/response/render.rb
plutonium-0.15.0.pre.rc2 lib/plutonium/interaction/response/render.rb
plutonium-0.15.0.pre.rc1 lib/plutonium/interaction/response/render.rb