Sha256: e78ab9fdb4a62134873be06fedd6d44dbced27996dc362d69320f18a638e91be

Contents?: true

Size: 459 Bytes

Versions: 4

Compression:

Stored size: 459 Bytes

Contents

require 'aldous/logging_wrapper'

module Aldous
  class Params
    include Aldous

    class << self
      def build(*args)
        new(*args)
      end
    end

    attr_reader :params

    def initialize(params)
      @params = params
    end

    def fetch
      permitted_params
    rescue => e
      Aldous::LoggingWrapper.log(e)
      nil
    end

    def permitted_params
      {}
    end

    def error_message
      'Missing param'
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aldous-1.1.3 lib/aldous/params.rb
aldous-1.1.2 lib/aldous/params.rb
aldous-1.0.1 lib/aldous/params.rb
aldous-1.0.0 lib/aldous/params.rb