Sha256: 739144baead5d4232bbb4e915f913562c3f9a983383b616761f294b7f69ecdba

Contents?: true

Size: 600 Bytes

Versions: 7

Compression:

Stored size: 600 Bytes

Contents

module Helpstation
  class Renderer < Evaluator
    include AbstractType

    # Perform the renderer
    #
    # @param [Substation::Response]
    #   the response returned when calling the action
    #
    # @api private
    def self.call(response)
      new(response).call
    end

    def initialize(response)
      @response = response
      @env      = response.env
      @input    = response.input
      @output   = response.output
      @request  = response.request
    end

    abstract_method :call

    private

    attr_reader :env
    attr_reader :input
    attr_reader :output
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
helpstation-0.1.7 lib/helpstation/renderer.rb
helpstation-0.1.6 lib/helpstation/renderer.rb
helpstation-0.1.5 lib/helpstation/renderer.rb
helpstation-0.1.4 lib/helpstation/renderer.rb
helpstation-0.1.3 lib/helpstation/renderer.rb
helpstation-0.1.2 lib/helpstation/renderer.rb
helpstation-0.1.0 lib/helpstation/renderer.rb