Class: BusinessCentral::Object::FilterQuery

Inherits:
Object
  • Object
show all
Extended by:
URLHelper
Defined in:
lib/business_central/object/filter_query.rb

Class Method Summary collapse

Methods included from URLHelper

encode_url_object, encode_url_params, odata_encode

Class Method Details

.sanitize(query = '', values = []) ⇒ Object



11
12
13
14
15
16
# File 'lib/business_central/object/filter_query.rb', line 11

def sanitize(query = '', values = [])
  return encode_url_params(query) if values.length.zero?

  query = replace_template_with_value(query, values)
  encode_url_params(query)
end