Sha256: 22f5e06b843c7b916d3dc9bc7bb2b085d5e2fd07caf2c355fdbb0e2dfc051d43

Contents?: true

Size: 307 Bytes

Versions: 2

Compression:

Stored size: 307 Bytes

Contents

module ReportsKits
  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

2 entries across 2 versions & 1 rubygems

Version Path
reports_kits-0.7.8 lib/reports_kits/normalized_params.rb
reports_kits-0.7.7 lib/reports_kits/normalized_params.rb