def get_content(media_or_io)
      case true
      when is_binary?(media_or_io) then media_or_io
      when is_file?(media_or_io)   then File.read(media_or_io)
      when is_url?(media_or_io)    then open(media_or_io).read
      when is_string?(media_or_io) then media_or_io
      when is_io?(media_or_io)     then media_or_io.read
      else raise UnsupportedType.new("That media type is unsupported")
      end
    end
def get_content(media_or_io)
      case true
      when is_binary?(media_or_io) then media_or_io
      when is_file?(media_or_io)   then File.read(media_or_io)
      when is_url?(media_or_io)    then open(media_or_io).read
      when is_string?(media_or_io) then media_or_io
      when is_io?(media_or_io)     then media_or_io.read
      else raise UnsupportedType.new("That media type is unsupported")
      end
    end
Private: Gets the content of the possible media_or_io

 media_or_io - The url, file, path or read compatible source

 Returns the content of the media