lib/sourcescrub/utils/response.rb in sourcescrub-0.1.0 vs lib/sourcescrub/utils/response.rb in sourcescrub-0.1.1
- old
+ new
@@ -27,9 +27,10 @@
end
# Setup attributes
attribute_names.each do |attr_name|
attr_value = response.dig(attr_name)
+ attr_value = nil if attr_name == 'currentEmployeeRange' && attr_value.is_a?(Integer)
dynamic_define_method(object, attr_name, attr_value)
end
object