lib/monday/util.rb in monday_ruby-0.6.0 vs lib/monday/util.rb in monday_ruby-0.6.1
- old
+ new
@@ -71,19 +71,17 @@
value.is_a?(Array) ? "#{key} { #{format_array(value)} }" : "#{key} { #{value} }"
end.join(" ")
end
def formatted_args_value(value)
- return "\"#{value}\"" unless single_word?(value)
return value.to_json.to_json if value.is_a?(Hash)
+ return value if integer?(value)
- value
+ "\"#{value}\""
end
- def single_word?(word)
- return word unless word.is_a?(String)
-
- !word.strip.include?(" ")
+ def integer?(value)
+ value.is_a?(Integer)
end
end
end
end