lib/eps-rapid/client.rb in eps-rapid-1.1.0 vs lib/eps-rapid/client.rb in eps-rapid-1.1.1
- old
+ new
@@ -57,11 +57,13 @@
def transform_params(params)
params.each do |k, v|
params[k] =
if k == :occupancy
v.to_s.tr(' ', '').split(';')
- else
+ elsif v.is_a?(String) || v.is_a?(Symbol) || v.is_a?(Integer)
v.to_s.tr(' ', '').split(',')
+ else
+ v
end
end
end
def additional_headers(params)