Sha256: 6e27dad37bc8e08b5a1f40cd29a80942f9d29cdb339535b909c200c82561d354

Contents?: true

Size: 306 Bytes

Versions: 7

Compression:

Stored size: 306 Bytes

Contents

module ReportsKit
  module NormalizedParams
    def report_params
      params[:report_params]
    end

    def context_params
      params[:context_params]
    end

    def report_key
      raise ArgumentError.new('Blank report_params') if report_params.blank?
      report_params[:key]
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
reports_kit-0.7.1 lib/reports_kit/normalized_params.rb
reports_kit-0.7.0 lib/reports_kit/normalized_params.rb
reports_kit-0.5.0 lib/reports_kit/normalized_params.rb
reports_kit-0.4.1 lib/reports_kit/normalized_params.rb
reports_kit-0.4.0 lib/reports_kit/normalized_params.rb
reports_kit-0.3.3 lib/reports_kit/normalized_params.rb
reports_kit-0.3.2 lib/reports_kit/normalized_params.rb