Method: Worldline::Acquiring::SDK::Logging::LogMessageBuilder#is_binary
- Defined in:
- lib/worldline/acquiring/sdk/logging/log_message_builder.rb
#is_binary(content_type) ⇒ Object
Returns whether or not the content type is binary
79 80 81 82 83 84 85 86 |
# File 'lib/worldline/acquiring/sdk/logging/log_message_builder.rb', line 79 def is_binary(content_type) if content_type.nil? false else content_type = content_type.downcase !(content_type.start_with?("text/") || content_type.include?("json") || content_type.include?("xml")) end end |