class ReportPortal::ItemSearchOptions

Options of a request to search items

Constants

MAPPING

Attributes

query_params[R]

Public Class Methods

new(params = {}) click to toggle source
# File lib/report_portal/models/item_search_options.rb, line 16
def initialize(params = {})
  @query_params = params.map { |mapping_key, v| [param_name(mapping_key), v] }.to_h
end

Private Instance Methods

param_name(mapping_key) click to toggle source
# File lib/report_portal/models/item_search_options.rb, line 22
def param_name(mapping_key)
  MAPPING.fetch(mapping_key) { raise KeyError, "key not found: '#{mapping_key.inspect}'. It should be one of: #{MAPPING.keys}" }
end