Module: Queries::Helpers

Included in:
CollectionObject::Filter, Concerns::Identifiers
Defined in:
lib/queries/helpers.rb

Instance Method Summary collapse

Instance Method Details

#boolean_param(params, attribute) ⇒ Object



3
4
5
# File 'lib/queries/helpers.rb', line 3

def boolean_param(params, attribute)
  (params[attribute]&.downcase == 'true' ? true : false) if !params[attribute].nil?
end